aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2016-07-02 22:56:39 +0200
committerWillem Jan Palenstijn2016-07-02 22:56:53 +0200
commit79b0309fd1418d17e1f4c95b0db3d527cd528205 (patch)
tree8762b53f56f4b980f3ab456da55b011c78f00950
parentcfeae98eb0538502774b031153ec0b72b8d260bf (diff)
downloadscummvm-rg350-79b0309fd1418d17e1f4c95b0db3d527cd528205.tar.gz
scummvm-rg350-79b0309fd1418d17e1f4c95b0db3d527cd528205.tar.bz2
scummvm-rg350-79b0309fd1418d17e1f4c95b0db3d527cd528205.zip
SCI32: Fix dropping events in kEditText
-rw-r--r--engines/sci/graphics/controls32.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sci/graphics/controls32.cpp b/engines/sci/graphics/controls32.cpp
index 61dfbedfc5..6aad636e7e 100644
--- a/engines/sci/graphics/controls32.cpp
+++ b/engines/sci/graphics/controls32.cpp
@@ -191,7 +191,8 @@ reg_t GfxControls32::kernelEditText(const reg_t controlObject) {
// Consume the event now that we know it is not one of the
// defocusing events above
- eventManager->getSciEvent(SCI_EVENT_ANY);
+ if (event.type != SCI_EVENT_NONE)
+ eventManager->getSciEvent(SCI_EVENT_ANY);
// NOTE: In the original engine, the font and bitmap were
// reset here on each iteration through the loop, but it