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:
parent
f9f97573dd
commit
532345f70e
2 changed files with 432 additions and 285 deletions
File diff suppressed because it is too large
Load diff
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue