From 0c848d2ea8134f98194fd16a630b40b912ff25b5 Mon Sep 17 00:00:00 2001 From: theoddone33 <> Date: Sat, 2 Mar 2002 19:28:43 +0000 Subject: [PATCH] Force 16 bpp drawing. Actually exit if SDL can't be initialized. --- zsnes/src/linux/sdllink.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/zsnes/src/linux/sdllink.c b/zsnes/src/linux/sdllink.c index 064f1432..44e9343f 100644 --- a/zsnes/src/linux/sdllink.c +++ b/zsnes/src/linux/sdllink.c @@ -37,7 +37,7 @@ static DWORD FullScreen = 0; static int sdl_inited = 0; static int UseOpenGL = 0; extern unsigned char cvidmode; -DWORD BitDepth = 0; // Do NOT change this for ANY reason! +DWORD BitDepth = 16; // JOYSTICK AND KEYBOARD INPUT SDL_Joystick *JoystickInput[5]; //DWORD CurrentJoy = 0; @@ -580,8 +580,6 @@ int startgame(void) sdl_inited = -1; } - BitDepth = (UseOpenGL ? 16 : 0); - if (sdl_inited == 1) sw_end(); #ifdef __OPENGL__ else if (sdl_inited == 2) gl_end(); @@ -756,7 +754,7 @@ void initwinvideo(void) if (startgame() != TRUE) { - return; + LinuxExit (); } if (newmode == 1)