aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorTorbjörn Andersson2004-02-25 08:03:31 +0000
committerTorbjörn Andersson2004-02-25 08:03:31 +0000
commit60a26dc1f5db3e3be5c5bc3894eb9c4f55fc3fb0 (patch)
treee1a9fbea2afbe77a6577af39b441e5ddc96e9c49 /base
parent70c3d3b66e15d2f6706bc1b276630386447f979e (diff)
downloadscummvm-rg350-60a26dc1f5db3e3be5c5bc3894eb9c4f55fc3fb0.tar.gz
scummvm-rg350-60a26dc1f5db3e3be5c5bc3894eb9c4f55fc3fb0.tar.bz2
scummvm-rg350-60a26dc1f5db3e3be5c5bc3894eb9c4f55fc3fb0.zip
Honor per-game aspect-ratio correction setting when starting the game from
the launcher. svn-id: r13043
Diffstat (limited to 'base')
-rw-r--r--base/main.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/base/main.cpp b/base/main.cpp
index 85cfc059fd..a8356fddae 100644
--- a/base/main.cpp
+++ b/base/main.cpp
@@ -245,9 +245,12 @@ static void runGame(GameDetector &detector, OSystem *system) {
}
}
+ // (De)activate aspect-ratio correction as determined by the config settings
+ system->setFeatureState(OSystem::kFeatureAspectRatioCorrection, ConfMan.getBool("aspect_ratio"));
+
// (De)activate fullscreen mode as determined by the config settings
system->setFeatureState(OSystem::kFeatureFullscreenMode, ConfMan.getBool("fullscreen"));
-
+
// Create the game engine
Engine *engine = detector.createEngine(system);
assert(engine);