Ensure that scaler cmdline options override the saved config

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1928 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
avolkov
2005-10-26 07:20:33 +00:00
parent 065bd536ca
commit fa14ca7f75
+2
View File
@@ -459,6 +459,8 @@ parseOptions(int argc, char *argv[], struct options_struct *options)
options->gfxDriver = TFB_GFXDRIVER_SDL_OPENGL;
break;
case 'c':
// make sure whatever was set by saved config is cleared
options->gfxFlags &= ~TFB_GFXFLAGS_SCALE_ANY;
if (!strcmp (optarg, "bilinear"))
options->gfxFlags |= TFB_GFXFLAGS_SCALE_BILINEAR;
else if (!strcmp (optarg, "biadapt"))