aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/predictive.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/agi/predictive.cpp')
-rw-r--r--engines/agi/predictive.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/agi/predictive.cpp b/engines/agi/predictive.cpp
index ae8bc98ac9..c2f031ea75 100644
--- a/engines/agi/predictive.cpp
+++ b/engines/agi/predictive.cpp
@@ -176,9 +176,7 @@ bool AgiEngine::predictiveDialog(void) {
}
}
- // clear key queue
- while (_gfx->keypress())
- _gfx->getKey();
+ clearKeyQueue();
prefix.clear();
_currentCode.clear();
@@ -234,7 +232,7 @@ bool AgiEngine::predictiveDialog(void) {
_gfx->doUpdate();
}
- _gfx->pollTimer(); // msdos driver -> does nothing
+ pollTimer();
key = doPollKeyboard();
processkey = false;
switch (key) {