From e707e312da9979664c9a853457269c39e04e0aca Mon Sep 17 00:00:00 2001 From: Le Philousophe Date: Sat, 1 Jun 2019 17:14:47 +0200 Subject: CRYOMNI3D: Handle cursor moves during fading --- engines/cryomni3d/cryomni3d.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'engines/cryomni3d') 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() { -- cgit v1.2.3