From bdc687862765fe411907e6fa97a1b9beb20cf59e Mon Sep 17 00:00:00 2001 From: hpsolo <> Date: Thu, 31 May 2001 06:04:34 +0000 Subject: [PATCH] Small BitDepth fix --- zsnes/src/linux/sdllink.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/zsnes/src/linux/sdllink.c b/zsnes/src/linux/sdllink.c index 25725f9f..473a0ea5 100644 --- a/zsnes/src/linux/sdllink.c +++ b/zsnes/src/linux/sdllink.c @@ -38,11 +38,7 @@ int sdl_inited = 0; DWORD CurrentJoy=0; SDL_Joystick *JoystickInput[4]; -#ifdef __OPENGL__ -DWORD BitDepth=16; // Do NOT change this for ANY reason -#else DWORD BitDepth=0; // Do NOT change this for ANY reason -#endif BYTE BackColor=0; float MouseMinX=0; @@ -537,6 +533,7 @@ int startgame(void) flags |= SDL_OPENGL; SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 ); } + BitDepth = (UseOpenGL ? 16 : 0); #endif surface = SDL_SetVideoMode(WindowWidth, WindowHeight, BitDepth, flags);