aboutsummaryrefslogtreecommitdiff
path: root/base/commandLine.cpp
diff options
context:
space:
mode:
authorThierry Crozat2016-10-12 22:32:36 +0100
committerThierry Crozat2016-10-13 01:45:01 +0100
commit3e08c33c352b3d28c75e818fe601904a26d03d0f (patch)
tree31729bb0266bd4c824786fa5332aec6aeff61efe /base/commandLine.cpp
parent30aae5178a1ef8db768dbf9f5e481161489365c3 (diff)
downloadscummvm-rg350-3e08c33c352b3d28c75e818fe601904a26d03d0f.tar.gz
scummvm-rg350-3e08c33c352b3d28c75e818fe601904a26d03d0f.tar.bz2
scummvm-rg350-3e08c33c352b3d28c75e818fe601904a26d03d0f.zip
GUI: Add checkbox and config option to enable/disable graphics filtering
Diffstat (limited to 'base/commandLine.cpp')
-rw-r--r--base/commandLine.cpp6
1 files changed, 6 insertions, 0 deletions
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")