aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
diff options
context:
space:
mode:
authorJohannes Schickel2008-09-14 19:05:05 +0000
committerJohannes Schickel2008-09-14 19:05:05 +0000
commit20a7a9112ffb454a4769f345825916d404e7b083 (patch)
treef5434e3703b543dda9c49d77cbaebe8e353e7cc3 /engines/kyra
parent78d7a276cf113b7db6eeab051c9b16fa21bb332f (diff)
downloadscummvm-rg350-20a7a9112ffb454a4769f345825916d404e7b083.tar.gz
scummvm-rg350-20a7a9112ffb454a4769f345825916d404e7b083.tar.bz2
scummvm-rg350-20a7a9112ffb454a4769f345825916d404e7b083.zip
Fix potentional bug in Screen::setResolution.
svn-id: r34533
Diffstat (limited to 'engines/kyra')
-rw-r--r--engines/kyra/screen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/kyra/screen.cpp b/engines/kyra/screen.cpp
index 16cfa6a8b5..4bcde9a679 100644
--- a/engines/kyra/screen.cpp
+++ b/engines/kyra/screen.cpp
@@ -188,19 +188,19 @@ void Screen::setResolution() {
if (_vm->gameFlags().useHiResOverlay) {
_system->beginGFXTransaction();
- _vm->initCommonGFX(true);
if (_debugEnabled)
_system->initSize(960, 400);
else
_system->initSize(640, 400);
+ _vm->initCommonGFX(true);
_system->endGFXTransaction();
} else {
_system->beginGFXTransaction();
- _vm->initCommonGFX(false);
if (_debugEnabled)
_system->initSize(640, 200);
else
_system->initSize(320, 200);
+ _vm->initCommonGFX(false);
_system->endGFXTransaction();
}