BACKENDS: Fix window sizing of games that switch between multiple resolutions
This commit is contained in:
parent
24f5d45619
commit
6e157429b7
17 changed files with 287 additions and 57 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue