From 0fbee6a61be1cd5358dd35f948d1517ed6bd1f8f Mon Sep 17 00:00:00 2001 From: mcmartin Date: Tue, 27 Sep 2005 09:13:38 +0000 Subject: [PATCH] Fixed reading of the wrong variable for gfx driver in 320x240 or 640x480 git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1885 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/setupmenu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sc2/src/sc2code/setupmenu.c b/sc2/src/sc2code/setupmenu.c index 2867a5edd..4978a0061 100644 --- a/sc2/src/sc2code/setupmenu.c +++ b/sc2/src/sc2code/setupmenu.c @@ -695,7 +695,7 @@ SetGlobalOptions (GLOBALOPTS *opts) NewWidth = 320; NewHeight = 240; #ifdef HAVE_OPENGL - NewDriver = (opts->res == OPTVAL_ALWAYS_GL ? TFB_GFXDRIVER_SDL_OPENGL : TFB_GFXDRIVER_SDL_PURE); + NewDriver = (opts->driver == OPTVAL_ALWAYS_GL ? TFB_GFXDRIVER_SDL_OPENGL : TFB_GFXDRIVER_SDL_PURE); #else NewDriver = TFB_GFXDRIVER_SDL_PURE; #endif @@ -704,7 +704,7 @@ SetGlobalOptions (GLOBALOPTS *opts) NewWidth = 640; NewHeight = 480; #ifdef HAVE_OPENGL - NewDriver = (opts->res == OPTVAL_ALWAYS_GL ? TFB_GFXDRIVER_SDL_OPENGL : TFB_GFXDRIVER_SDL_PURE); + NewDriver = (opts->driver == OPTVAL_ALWAYS_GL ? TFB_GFXDRIVER_SDL_OPENGL : TFB_GFXDRIVER_SDL_PURE); #else NewDriver = TFB_GFXDRIVER_SDL_PURE; #endif