From 25c77ac051abe5cc1fa3baba5e6e10779987153c Mon Sep 17 00:00:00 2001 From: jsalmon3 <> Date: Mon, 2 Feb 2004 06:34:43 +0000 Subject: [PATCH] Only support 16 and 32 bpp --- src/video/sdl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/sdl.cpp b/src/video/sdl.cpp index dfc64c718..0ac132cc3 100644 --- a/src/video/sdl.cpp +++ b/src/video/sdl.cpp @@ -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); }