[Scummvm-cvs-logs] SF.net SVN: scummvm: [29555] scummvm/trunk/engines/lure/surface.cpp

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Sun Nov 18 11:08:43 CET 2007


Revision: 29555
          http://scummvm.svn.sourceforge.net/scummvm/?rev=29555&view=rev
Author:   eriktorbjorn
Date:     2007-11-18 02:08:43 -0800 (Sun, 18 Nov 2007)

Log Message:
-----------
Fixed sluggish mouse cursor on restart/restore screen.

Modified Paths:
--------------
    scummvm/trunk/engines/lure/surface.cpp

Modified: scummvm/trunk/engines/lure/surface.cpp
===================================================================
--- scummvm/trunk/engines/lure/surface.cpp	2007-11-18 08:11:29 UTC (rev 29554)
+++ scummvm/trunk/engines/lure/surface.cpp	2007-11-18 10:08:43 UTC (rev 29555)
@@ -898,15 +898,21 @@
 		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) &&


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list