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
This commit is contained in:
Filippos Karapetis 2008-04-29 18:50:17 +00:00
parent 0de56ea1f9
commit b804175684

View File

@ -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;