aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);