diff options
author | Torbjörn Andersson | 2018-10-22 18:18:27 +0200 |
---|---|---|
committer | Thierry Crozat | 2018-10-22 22:08:39 +0100 |
commit | 8f3e1b7373edece88bb896add408dd02fe922086 (patch) | |
tree | 857e21625aa391485941a97406009268eab242e1 /engines | |
parent | 7da548aa1ea873523014376da24dc624b7209466 (diff) | |
download | scummvm-rg350-8f3e1b7373edece88bb896add408dd02fe922086.tar.gz scummvm-rg350-8f3e1b7373edece88bb896add408dd02fe922086.tar.bz2 scummvm-rg350-8f3e1b7373edece88bb896add408dd02fe922086.zip |
ENGINE: Allow stretch mode on a per-game basis
It was already possible to override the stretch mode per game
in the options dialog, but this was ignored when starting the
game from the launcher due to this bug.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/engine.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/engine.cpp b/engines/engine.cpp index 77ca54ffbb..cc8c0132f9 100644 --- a/engines/engine.cpp +++ b/engines/engine.cpp @@ -210,6 +210,9 @@ void initCommonGFX() { if (gameDomain->contains("filtering")) g_system->setFeatureState(OSystem::kFeatureFilteringMode, ConfMan.getBool("filtering")); + + if (gameDomain->contains("stretch_mode")) + g_system->setStretchMode(ConfMan.get("stretch_mode").c_str()); } } |