diff options
author | Johannes Schickel | 2012-01-14 16:44:30 +0100 |
---|---|---|
committer | Johannes Schickel | 2012-01-14 17:04:35 +0100 |
commit | 6a3d0e712940bf4560e5302c40f07f5f6eb8e0aa (patch) | |
tree | ab5b258b6339b77217029245d04fff8535af042c /engines/kyra | |
parent | c805e5f5dc71fda908218e049b81b4080919f93e (diff) | |
download | scummvm-rg350-6a3d0e712940bf4560e5302c40f07f5f6eb8e0aa.tar.gz scummvm-rg350-6a3d0e712940bf4560e5302c40f07f5f6eb8e0aa.tar.bz2 scummvm-rg350-6a3d0e712940bf4560e5302c40f07f5f6eb8e0aa.zip |
KYRA: Make workaround for bug #1498221 work again.
The bug in question is "KYRA1: Glitches when meeting Zanthia".
This is a regression from 0af418e7ea3a41f93fcc551a45ee5bae822d812a as far as
I can tell.
Diffstat (limited to 'engines/kyra')
-rw-r--r-- | engines/kyra/kyra_lok.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/engines/kyra/kyra_lok.cpp b/engines/kyra/kyra_lok.cpp index c195f0275a..74db67d22b 100644 --- a/engines/kyra/kyra_lok.cpp +++ b/engines/kyra/kyra_lok.cpp @@ -510,7 +510,14 @@ void KyraEngine_LoK::delay(uint32 amount, bool update, bool isMainLoop) { updateTextFade(); updateMousePointer(); } else { - _screen->updateScreen(); + // We call OSystem::updateScreen here and not Screen::updateScreen + // to avoid new graphics changes to be copied to the screen. + // This assures the workaround of bug #1498221 + // "KYRA1: Glitches when meeting Zanthia" is working correctly. + // Since we only call updateScreen here to let systems with frame + // update count limitations not miss any graphics updates it + // should not cause any problems. + _system->updateScreen(); } _isSaveAllowed = isMainLoop; |