diff options
author | Sven Hesse | 2007-08-03 17:51:36 +0000 |
---|---|---|
committer | Sven Hesse | 2007-08-03 17:51:36 +0000 |
commit | 055e6654e55f6d8d1f53527b9397865c35d2f0bd (patch) | |
tree | 6ec47f8bd204ff14c8a671b8207bcacc47a122f0 /engines/gob | |
parent | 7ec3572ee6711965bfaf2996fed22bc1d65c7fd0 (diff) | |
download | scummvm-rg350-055e6654e55f6d8d1f53527b9397865c35d2f0bd.tar.gz scummvm-rg350-055e6654e55f6d8d1f53527b9397865c35d2f0bd.tar.bz2 scummvm-rg350-055e6654e55f6d8d1f53527b9397865c35d2f0bd.zip |
Lost in Time's title is shown correctly now.
The size switching looks a bit whacky, but that's what the game does :)
svn-id: r28435
Diffstat (limited to 'engines/gob')
-rw-r--r-- | engines/gob/inter_v2.cpp | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/engines/gob/inter_v2.cpp b/engines/gob/inter_v2.cpp index 476ebedddd..64d092b919 100644 --- a/engines/gob/inter_v2.cpp +++ b/engines/gob/inter_v2.cpp @@ -1375,12 +1375,30 @@ void Inter_v2::o2_initScreen() { width = _vm->_parse->parseValExpr(); height = _vm->_parse->parseValExpr(); - _vm->_global->_colorCount = (videoMode == 0x10) ? 16 : 256; + // Lost in Time switches to 640x400x16 when showing the title screen + if (_vm->getGameType() == kGameTypeLostInTime) { + if (videoMode == 0x10) { + width = _vm->_width = 640; + height = _vm->_height = 400; + _vm->_global->_colorCount = 16; + _vm->_system->initSize(_vm->_width, _vm->_height); + } else if (_vm->_global->_videoMode == 0x10) { + if (width == -1) + width = 320; + if (height == -1) + height = 200; + + _vm->_width = 320; + _vm->_height = 200; + _vm->_global->_colorCount = 256; + _vm->_system->initSize(_vm->_width, _vm->_height); + } + } _vm->_global->_fakeVideoMode = videoMode; // Some versions require this - if ((videoMode == 0xD))// || (videoMode == 0x10)) + if (videoMode == 0xD) videoMode = _vm->_mode; if ((videoMode == _vm->_global->_videoMode) && (width == -1)) |