aboutsummaryrefslogtreecommitdiff
path: root/engines/gob
diff options
context:
space:
mode:
authorEugene Sandulenko2007-08-03 21:09:41 +0000
committerEugene Sandulenko2007-08-03 21:09:41 +0000
commit8b5f0624f5a6c80826fb547ac6613b21ce2e1cc7 (patch)
tree7ba9568759bd8f97e6111eb631bb383d6be4d06c /engines/gob
parentff8ed07958a3c75c1cd909d4cdd2849c8b76cd14 (diff)
downloadscummvm-rg350-8b5f0624f5a6c80826fb547ac6613b21ce2e1cc7.tar.gz
scummvm-rg350-8b5f0624f5a6c80826fb547ac6613b21ce2e1cc7.tar.bz2
scummvm-rg350-8b5f0624f5a6c80826fb547ac6613b21ce2e1cc7.zip
Make resolution change in Lost in Time less wacky.
svn-id: r28437
Diffstat (limited to 'engines/gob')
-rw-r--r--engines/gob/inter_v2.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/engines/gob/inter_v2.cpp b/engines/gob/inter_v2.cpp
index 64d092b919..376aef75d9 100644
--- a/engines/gob/inter_v2.cpp
+++ b/engines/gob/inter_v2.cpp
@@ -1381,7 +1381,10 @@ void Inter_v2::o2_initScreen() {
width = _vm->_width = 640;
height = _vm->_height = 400;
_vm->_global->_colorCount = 16;
- _vm->_system->initSize(_vm->_width, _vm->_height);
+ _vm->_system->beginGFXTransaction();
+ _vm->_system->initSize(_vm->_width, _vm->_height);
+ _vm->initCommonGFX(true);
+ _vm->_system->endGFXTransaction();
} else if (_vm->_global->_videoMode == 0x10) {
if (width == -1)
width = 320;
@@ -1391,7 +1394,10 @@ void Inter_v2::o2_initScreen() {
_vm->_width = 320;
_vm->_height = 200;
_vm->_global->_colorCount = 256;
- _vm->_system->initSize(_vm->_width, _vm->_height);
+ _vm->_system->beginGFXTransaction();
+ _vm->_system->initSize(_vm->_width, _vm->_height);
+ _vm->initCommonGFX(false);
+ _vm->_system->endGFXTransaction();
}
}