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:
@@ -459,6 +459,8 @@ parseOptions(int argc, char *argv[], struct options_struct *options)
|
|||||||
options->gfxDriver = TFB_GFXDRIVER_SDL_OPENGL;
|
options->gfxDriver = TFB_GFXDRIVER_SDL_OPENGL;
|
||||||
break;
|
break;
|
||||||
case 'c':
|
case 'c':
|
||||||
|
// make sure whatever was set by saved config is cleared
|
||||||
|
options->gfxFlags &= ~TFB_GFXFLAGS_SCALE_ANY;
|
||||||
if (!strcmp (optarg, "bilinear"))
|
if (!strcmp (optarg, "bilinear"))
|
||||||
options->gfxFlags |= TFB_GFXFLAGS_SCALE_BILINEAR;
|
options->gfxFlags |= TFB_GFXFLAGS_SCALE_BILINEAR;
|
||||||
else if (!strcmp (optarg, "biadapt"))
|
else if (!strcmp (optarg, "biadapt"))
|
||||||
|
|||||||
Reference in New Issue
Block a user