aboutsummaryrefslogtreecommitdiff
path: root/common/gameDetector.cpp
diff options
context:
space:
mode:
authorJonathan Gray2003-03-18 06:53:47 +0000
committerJonathan Gray2003-03-18 06:53:47 +0000
commit5985310d64045cfea39998dda6ad45577d966392 (patch)
tree92b5212ae5104c4c04b63f22175873399de3bf90 /common/gameDetector.cpp
parent0812d3bf444ef6c200d30b4d16d1b095fa571597 (diff)
downloadscummvm-rg350-5985310d64045cfea39998dda6ad45577d966392.tar.gz
scummvm-rg350-5985310d64045cfea39998dda6ad45577d966392.tar.bz2
scummvm-rg350-5985310d64045cfea39998dda6ad45577d966392.zip
add GF_DEFAULT_TO_1X_SCALER
svn-id: r6830
Diffstat (limited to 'common/gameDetector.cpp')
-rw-r--r--common/gameDetector.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/gameDetector.cpp b/common/gameDetector.cpp
index 56c6b3c9fc..af236127f9 100644
--- a/common/gameDetector.cpp
+++ b/common/gameDetector.cpp
@@ -158,6 +158,7 @@ GameDetector::GameDetector() {
#else
_gfx_mode = GFX_NORMAL;
#endif
+ _default_gfx_mode = true;
#if defined(USE_NULL_DRIVER)
_gfx_driver = GD_NULL;
@@ -467,8 +468,10 @@ void GameDetector::setGame(const String &name) {
int GameDetector::parseGraphicsMode(const char *s) {
const GraphicsModes *gm = gfx_modes;
while(gm->name) {
- if (!scumm_stricmp(gm->name, s))
+ if (!scumm_stricmp(gm->name, s)) {
+ _default_gfx_mode = false;
return gm->id;
+ }
gm++;
}