aboutsummaryrefslogtreecommitdiff
path: root/engines/cryomni3d
diff options
context:
space:
mode:
authorLe Philousophe2019-06-01 17:14:47 +0200
committerEugene Sandulenko2019-06-01 22:43:48 +0200
commite707e312da9979664c9a853457269c39e04e0aca (patch)
treeaba0ce66c92f5a31034a1fc9a50bf8e69e71e319 /engines/cryomni3d
parentb72fdaf8a2f97a04ecb14c693d9a994f169a9b0f (diff)
downloadscummvm-rg350-e707e312da9979664c9a853457269c39e04e0aca.tar.gz
scummvm-rg350-e707e312da9979664c9a853457269c39e04e0aca.tar.bz2
scummvm-rg350-e707e312da9979664c9a853457269c39e04e0aca.zip
CRYOMNI3D: Handle cursor moves during fading
Diffstat (limited to 'engines/cryomni3d')
-rw-r--r--engines/cryomni3d/cryomni3d.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/cryomni3d/cryomni3d.cpp b/engines/cryomni3d/cryomni3d.cpp
index 193d1058a3..9cabf543cb 100644
--- a/engines/cryomni3d/cryomni3d.cpp
+++ b/engines/cryomni3d/cryomni3d.cpp
@@ -388,11 +388,15 @@ void CryOmni3DEngine::fadeOutPalette() {
setPalette(palOut, 0, 256);
// Wait 50ms between each steps but refresh screen every 10ms
for (uint i = 0; i < 5; i++) {
+ pollEvents();
g_system->updateScreen();
g_system->delayMillis(10);
}
}
setBlackPalette();
+ pollEvents();
+ g_system->updateScreen();
+ clearKeys();
}
void CryOmni3DEngine::fadeInPalette(const byte *palette) {
@@ -415,12 +419,15 @@ void CryOmni3DEngine::fadeInPalette(const byte *palette) {
setPalette(palOut, 0, 256);
// Wait 50ms between each steps but refresh screen every 10ms
for (uint i = 0; i < 5; i++) {
+ pollEvents();
g_system->updateScreen();
g_system->delayMillis(10);
}
}
setPalette(palette, 0, 256);
+ pollEvents();
g_system->updateScreen();
+ clearKeys();
}
void CryOmni3DEngine::setBlackPalette() {