aboutsummaryrefslogtreecommitdiff
path: root/engines/lure
diff options
context:
space:
mode:
authorTorbjörn Andersson2007-11-18 10:08:43 +0000
committerTorbjörn Andersson2007-11-18 10:08:43 +0000
commitade0b5a21222c705a8fe3a3e67d6c783904c6d5e (patch)
treed463f6f6ce7982c992d3ae7a39966236a7849f00 /engines/lure
parent91959050080f5823a700a661d597c166775f14bb (diff)
downloadscummvm-rg350-ade0b5a21222c705a8fe3a3e67d6c783904c6d5e.tar.gz
scummvm-rg350-ade0b5a21222c705a8fe3a3e67d6c783904c6d5e.tar.bz2
scummvm-rg350-ade0b5a21222c705a8fe3a3e67d6c783904c6d5e.zip
Fixed sluggish mouse cursor on restart/restore screen.
svn-id: r29555
Diffstat (limited to 'engines/lure')
-rw-r--r--engines/lure/surface.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/lure/surface.cpp b/engines/lure/surface.cpp
index 31d1ecf107..d2cecdae61 100644
--- a/engines/lure/surface.cpp
+++ b/engines/lure/surface.cpp
@@ -898,15 +898,21 @@ bool RestartRestoreDialog::show() {
screen.paletteFadeIn(&p);
// Event loop for making selection
+ bool buttonPressed = false;
+
while (!events.quitFlag) {
// Handle events
- if (events.pollEvent()) {
+ while (events.pollEvent()) {
if ((events.type() == Common::EVENT_LBUTTONDOWN) && (highlightedButton != -1)) {
mouse.waitForRelease();
+ buttonPressed = true;
break;
}
}
+ if (buttonPressed)
+ break;
+
// Check if the pointer is over either button
int currentButton = -1;
if ((mouse.y() >= btnRecord->BtnRestart.y) &&