aboutsummaryrefslogtreecommitdiff
path: root/engines/lure/surface.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2007-11-20 12:39:24 +0000
committerPaul Gilbert2007-11-20 12:39:24 +0000
commit724d99b74f83d6dce642881c51e879cd867031c9 (patch)
tree8a0846424b80f03c2ca210e942a1a3a850ae2ed5 /engines/lure/surface.cpp
parent5eb9b10bbd16c7bddd66dd5dd6c82e61e1122d4e (diff)
downloadscummvm-rg350-724d99b74f83d6dce642881c51e879cd867031c9.tar.gz
scummvm-rg350-724d99b74f83d6dce642881c51e879cd867031c9.tar.bz2
scummvm-rg350-724d99b74f83d6dce642881c51e879cd867031c9.zip
Changed the copy protection dialog event loop so the fourth digit pressed will be briefly displayed
svn-id: r29577
Diffstat (limited to 'engines/lure/surface.cpp')
-rw-r--r--engines/lure/surface.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/lure/surface.cpp b/engines/lure/surface.cpp
index 7910a6616d..b4849ec3dd 100644
--- a/engines/lure/surface.cpp
+++ b/engines/lure/surface.cpp
@@ -1052,7 +1052,7 @@ bool CopyProtectionDialog::show() {
_charIndex = 0;
while (!events.quitFlag) {
- while (events.pollEvent()) {
+ while (events.pollEvent() && (_charIndex < 4)) {
if (events.type() == Common::EVENT_KEYDOWN) {
if ((events.event().kbd.keycode == Common::KEYCODE_BACKSPACE) && (_charIndex > 0)) {
// Remove the last number typed
@@ -1066,9 +1066,8 @@ bool CopyProtectionDialog::show() {
// Number pressed
_hotspots[_charIndex + 3]->setFrameNumber(events.event().kbd.ascii - '0');
_hotspots[_charIndex + 3]->copyTo(&screen.screen());
-
- if (++_charIndex == 4)
- break;
+
+ ++_charIndex;
}
screen.update();
@@ -1076,6 +1075,8 @@ bool CopyProtectionDialog::show() {
}
g_system->delayMillis(10);
+ if (_charIndex == 4)
+ break;
}
if (events.quitFlag)