aboutsummaryrefslogtreecommitdiff
path: root/engines/agi
diff options
context:
space:
mode:
authorFilippos Karapetis2008-04-29 18:50:17 +0000
committerFilippos Karapetis2008-04-29 18:50:17 +0000
commitb804175684073a4e8bb8a4dea89c15c861db93ee (patch)
tree99760a133445db71c6f76be70e6a5255ee3f0e1e /engines/agi
parent0de56ea1f9e28a21d8252f1646fc8c4aaa25cb64 (diff)
downloadscummvm-rg350-b804175684073a4e8bb8a4dea89c15c861db93ee.tar.gz
scummvm-rg350-b804175684073a4e8bb8a4dea89c15c861db93ee.tar.bz2
scummvm-rg350-b804175684073a4e8bb8a4dea89c15c861db93ee.zip
Update AGI timers while waiting for a key to be pressed (e.g. when showing blocking text windows). Fixes bugs #1935909 and #1943872
svn-id: r31777
Diffstat (limited to 'engines/agi')
-rw-r--r--engines/agi/keyboard.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/agi/keyboard.cpp b/engines/agi/keyboard.cpp
index 6df7dd83ba..b8cf14d0ec 100644
--- a/engines/agi/keyboard.cpp
+++ b/engines/agi/keyboard.cpp
@@ -378,6 +378,10 @@ int AgiEngine::waitKey() {
key = doPollKeyboard();
if (key == KEY_ENTER || key == KEY_ESCAPE || key == BUTTON_LEFT)
break;
+
+ _gfx->pollTimer();
+ updateTimer();
+
_gfx->doUpdate();
}
return key;