aboutsummaryrefslogtreecommitdiff
path: root/sky
diff options
context:
space:
mode:
authorNicolas Bacca2003-07-11 15:52:46 +0000
committerNicolas Bacca2003-07-11 15:52:46 +0000
commit333ea0e300a6885636e46da64c54eb125c040446 (patch)
tree429f462723b66ae182588cac0959d68637255067 /sky
parente74eddf6fa7e779d3f771bd0bb0a40c241c182b7 (diff)
downloadscummvm-rg350-333ea0e300a6885636e46da64c54eb125c040446.tar.gz
scummvm-rg350-333ea0e300a6885636e46da64c54eb125c040446.tar.bz2
scummvm-rg350-333ea0e300a6885636e46da64c54eb125c040446.zip
Avoid deadlock
svn-id: r8911
Diffstat (limited to 'sky')
-rw-r--r--sky/screen.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/sky/screen.cpp b/sky/screen.cpp
index cf0a48714b..11ef94eea0 100644
--- a/sky/screen.cpp
+++ b/sky/screen.cpp
@@ -374,8 +374,12 @@ void SkyScreen::fnFadeUp(uint32 palNum, uint32 scroll) {
void SkyScreen::waitForTimer(void) {
_gotTick = false;
- while (!_gotTick)
+ while (!_gotTick) {
+ OSystem::Event event;
+
_system->delay_msecs(10);
+ while (_system->poll_event(&event));
+ }
}
void SkyScreen::handleTimer(void) {