1
0
Fork 0

Fix warnings related to misuse of SDL2 types

Use the opportunity to implement a bunch of formatting changes and fix
other warnings.
This commit is contained in:
Patryk Obara 2019-12-22 04:10:41 +01:00 committed by Patryk Obara
parent f9f97573dd
commit 532345f70e
2 changed files with 432 additions and 285 deletions

File diff suppressed because it is too large Load diff

View file

@ -332,8 +332,7 @@ Bitu GFX_GetBestMode(Bitu flags) {
case SCREEN_SURFACE:
check_surface:
flags &= ~GFX_LOVE_8; //Disable love for 8bpp modes
switch (sdl.desktop.bpp)
{
switch (sdl.desktop.bpp) {
case 8:
if (flags & GFX_CAN_8) flags&=~(GFX_CAN_15|GFX_CAN_16|GFX_CAN_32);
break;