From 3e08c33c352b3d28c75e818fe601904a26d03d0f Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Wed, 12 Oct 2016 22:32:36 +0100 Subject: GUI: Add checkbox and config option to enable/disable graphics filtering --- base/commandLine.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'base/commandLine.cpp') diff --git a/base/commandLine.cpp b/base/commandLine.cpp index c2b4ea765f..8be2057338 100644 --- a/base/commandLine.cpp +++ b/base/commandLine.cpp @@ -80,6 +80,8 @@ static const char HELP_STRING[] = " -g, --gfx-mode=MODE Select graphics scaler (1x,2x,3x,2xsai,super2xsai,\n" " supereagle,advmame2x,advmame3x,hq2x,hq3x,tv2x,\n" " dotmatrix)\n" + " --filtering Force filtered graphics mode\n" + " --no-filtering Force unfiltered graphics mode\n" " --gui-theme=THEME Select GUI theme\n" " --themepath=PATH Path to where GUI themes are stored\n" " --list-themes Display list of all usable GUI themes\n" @@ -178,6 +180,7 @@ void registerDefaults() { // Graphics ConfMan.registerDefault("fullscreen", false); + ConfMan.registerDefault("filtering", false); ConfMan.registerDefault("aspect_ratio", false); ConfMan.registerDefault("gfx_mode", "normal"); ConfMan.registerDefault("render_mode", "default"); @@ -441,6 +444,9 @@ Common::String parseCommandLine(Common::StringMap &settings, int argc, const cha DO_OPTION_BOOL('f', "fullscreen") END_OPTION + + DO_LONG_OPTION_BOOL("filtering") + END_OPTION #ifdef ENABLE_EVENTRECORDER DO_LONG_OPTION_INT("disable-display") -- cgit v1.2.3