From ade0b5a21222c705a8fe3a3e67d6c783904c6d5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torbj=C3=B6rn=20Andersson?= Date: Sun, 18 Nov 2007 10:08:43 +0000 Subject: [PATCH] Fixed sluggish mouse cursor on restart/restore screen. svn-id: r29555 --- engines/lure/surface.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/engines/lure/surface.cpp b/engines/lure/surface.cpp index 31d1ecf1070..d2cecdae615 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) &&