aboutsummaryrefslogtreecommitdiff
path: root/engines/gob
diff options
context:
space:
mode:
authorColin Snover2017-10-01 16:23:22 -0500
committerColin Snover2017-10-07 12:30:29 -0500
commit6e157429b7a5a64af6265d075c88595df2d6fd79 (patch)
tree6e16e359d2f427ff0aa17ae229780509595ee1b1 /engines/gob
parent24f5d456195df3b65ed2876cbca2e2981f3d1a07 (diff)
downloadscummvm-rg350-6e157429b7a5a64af6265d075c88595df2d6fd79.tar.gz
scummvm-rg350-6e157429b7a5a64af6265d075c88595df2d6fd79.tar.bz2
scummvm-rg350-6e157429b7a5a64af6265d075c88595df2d6fd79.zip
BACKENDS: Fix window sizing of games that switch between multiple resolutions
Diffstat (limited to 'engines/gob')
-rw-r--r--engines/gob/gob.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/gob/gob.cpp b/engines/gob/gob.cpp
index c9eaec9ef0..46f32a9f32 100644
--- a/engines/gob/gob.cpp
+++ b/engines/gob/gob.cpp
@@ -25,6 +25,7 @@
#include "backends/audiocd/audiocd.h"
#include "base/plugins.h"
#include "common/config-manager.h"
+#include "engines/util.h"
#include "audio/mididrv.h"
#include "audio/mixer.h"
@@ -708,6 +709,13 @@ Common::Error GobEngine::initGraphics() {
_mode = 0x14;
}
+ Graphics::ModeList modes;
+ modes.push_back(Graphics::Mode(_width, _height));
+ if (getGameType() == kGameTypeLostInTime) {
+ modes.push_back(Graphics::Mode(640, 400));
+ }
+ initGraphicsModes(modes);
+
_video->setSize();
_pixelFormat = g_system->getScreenFormat();