Only support 16 and 32 bpp
This commit is contained in:
parent
2f0c401466
commit
25c77ac051
1 changed files with 2 additions and 2 deletions
|
@ -218,8 +218,8 @@ global void InitVideoSdl(void)
|
|||
#endif
|
||||
|
||||
TheScreen = SDL_SetVideoMode(VideoWidth, VideoHeight, VideoDepth, flags);
|
||||
if (TheScreen && (TheScreen->format->BitsPerPixel == 8 ||
|
||||
TheScreen->format->BitsPerPixel == 24)) {
|
||||
if (TheScreen && (TheScreen->format->BitsPerPixel != 16 &&
|
||||
TheScreen->format->BitsPerPixel != 32)) {
|
||||
// Only support 16 and 32 bpp, default to 16
|
||||
TheScreen = SDL_SetVideoMode(VideoWidth, VideoHeight, 16, flags);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue