diff options
author | Max Horn | 2004-03-03 11:37:51 +0000 |
---|---|---|
committer | Max Horn | 2004-03-03 11:37:51 +0000 |
commit | 96e910ea7205d78878e9b8eb9492f88099db778c (patch) | |
tree | 6ac85e8b55f53a2c8d64c943409e55d0ac92a8fc /base | |
parent | ad820d7893cdc80afc466d31fa91202fa72ba2ca (diff) | |
download | scummvm-rg350-96e910ea7205d78878e9b8eb9492f88099db778c.tar.gz scummvm-rg350-96e910ea7205d78878e9b8eb9492f88099db778c.tar.bz2 scummvm-rg350-96e910ea7205d78878e9b8eb9492f88099db778c.zip |
fix for normal/default scaler behavior (not yet tested)
svn-id: r13168
Diffstat (limited to 'base')
-rw-r--r-- | base/main.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/base/main.cpp b/base/main.cpp index ab131efbe4..d0b1e30420 100644 --- a/base/main.cpp +++ b/base/main.cpp @@ -233,13 +233,17 @@ static void runGame(GameDetector &detector, OSystem *system) { if (!caption.isEmpty()) { system->setWindowCaption(caption.c_str()); } + + const bool useDefaultGraphicsMode = + !ConfMan.hasKey("gfx_mode", detector._targetName) || + !scumm_stricmp(ConfMan.get("gfx_mode", detector._targetName).c_str(), "normal") || + !scumm_stricmp(ConfMan.get("gfx_mode", detector._targetName).c_str(), "default"); // See if the game should default to 1x scaler - if (!ConfMan.hasKey("gfx_mode", detector._targetName) && - (detector._game.features & GF_DEFAULT_TO_1X_SCALER)) { + if (useDefaultGraphicsMode && (detector._game.features & GF_DEFAULT_TO_1X_SCALER)) { system->setGraphicsMode(GFX_NORMAL); } else { - // Override global scaler with any game-specific define + // Override global scaler with any game-specific define if (ConfMan.hasKey("gfx_mode")) { system->setGraphicsMode(ConfMan.get("gfx_mode").c_str()); } |