diff options
author | Eugene Sandulenko | 2005-03-10 16:29:08 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2005-03-10 16:29:08 +0000 |
commit | 3cf691e9f9d0aafad14b76272201a0cfac2e8a76 (patch) | |
tree | e0521bdf7843109f50f10cbc52f301c401c3ee0b /base | |
parent | cc2c2dd9313530a55aa455238c0194b316521312 (diff) | |
download | scummvm-rg350-3cf691e9f9d0aafad14b76272201a0cfac2e8a76.tar.gz scummvm-rg350-3cf691e9f9d0aafad14b76272201a0cfac2e8a76.tar.bz2 scummvm-rg350-3cf691e9f9d0aafad14b76272201a0cfac2e8a76.zip |
Add --force-1x-overlay command line option as discussed in bugreport
#1160454 "ALL: Failed assertion when using 1x scaler"
svn-id: r17067
Diffstat (limited to 'base')
-rw-r--r-- | base/gameDetector.cpp | 6 | ||||
-rw-r--r-- | base/gameDetector.h | 2 | ||||
-rw-r--r-- | base/main.cpp | 2 |
3 files changed, 9 insertions, 1 deletions
diff --git a/base/gameDetector.cpp b/base/gameDetector.cpp index 861c696651..7a4fe72680 100644 --- a/base/gameDetector.cpp +++ b/base/gameDetector.cpp @@ -98,6 +98,7 @@ static const char USAGE_STRING[] = " --aspect-ratio Enable aspect ratio correction\n" " --render-mode=MODE Enable additional render modes (cga, ega, hercGreen,\n" " hercAmber, amiga)\n" + " --force-1x-overlay Make inner GUI 320x200\n" "\n" #if !defined(DISABLE_SKY) || !defined(DISABLE_QUEEN) " --alt-intro Use alternative intro for CD versions of Beneath a\n" @@ -205,6 +206,7 @@ GameDetector::GameDetector() { #endif _dumpScripts = false; + _force1xOverlay = false; memset(&_game, 0, sizeof(_game)); _plugin = 0; @@ -489,6 +491,10 @@ void GameDetector::parseCommandLine(int argc, char **argv) { ConfMan.set("render_mode", option, kTransientDomain); END_OPTION + DO_LONG_OPTION_BOOL("force-1x-overlay") + _force1xOverlay = true; + END_OPTION + DO_LONG_OPTION("savepath") // TODO: Verify whether the path is valid ConfMan.set("savepath", option, kTransientDomain); diff --git a/base/gameDetector.h b/base/gameDetector.h index 41ccf39040..dc9dc1ed6f 100644 --- a/base/gameDetector.h +++ b/base/gameDetector.h @@ -59,6 +59,8 @@ public: bool _dumpScripts; + bool _force1xOverlay; + void setTarget(const String &name); public: diff --git a/base/main.cpp b/base/main.cpp index c8a3c82474..b6a7b92b2b 100644 --- a/base/main.cpp +++ b/base/main.cpp @@ -224,7 +224,7 @@ static bool launcherDialog(GameDetector &detector, OSystem &system) { system.setGraphicsMode(ConfMan.get("gfx_mode").c_str()); // Make GUI 640 x 400 - system.initSize(320, 200, 2); + system.initSize(320, 200, (detector._force1xOverlay ? 1 : 2)); system.endGFXTransaction(); |