[Scummvm-cvs-logs] SF.net SVN: scummvm:[43541] scummvm/trunk/engines/kyra/gui.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Wed Aug 19 18:48:58 CEST 2009


Revision: 43541
          http://scummvm.svn.sourceforge.net/scummvm/?rev=43541&view=rev
Author:   lordhoto
Date:     2009-08-19 16:48:55 +0000 (Wed, 19 Aug 2009)

Log Message:
-----------
- Fix sluggish mouse movement in Kyra2/Kyra3/LoL main menu.
- Fix sluggish mouse movement in the text input dialog of the GUI.

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/gui.cpp

Modified: scummvm/trunk/engines/kyra/gui.cpp
===================================================================
--- scummvm/trunk/engines/kyra/gui.cpp	2009-08-19 16:24:40 UTC (rev 43540)
+++ scummvm/trunk/engines/kyra/gui.cpp	2009-08-19 16:48:55 UTC (rev 43541)
@@ -232,10 +232,11 @@
 
 				menu.highlightedItem = i;
 				redrawHighlight(menu);
-				_screen->updateScreen();
 			}
 		}
 	}
+
+	_screen->updateScreen();
 }
 
 void GUI::redrawText(const Menu &menu) {
@@ -424,7 +425,8 @@
 			Common::Point pos = _vm->getMousePos();
 			_vm->_mouseX = pos.x;
 			_vm->_mouseY = pos.y;
-			_screen->updateScreen();
+
+			_vm->_system->updateScreen();
 			_lastScreenUpdate = now;
 			} break;
 
@@ -490,14 +492,24 @@
 	Common::Event event;
 	Common::EventManager *eventMan = _vm->getEventManager();
 
+	bool updateScreen = false;
+
 	while (eventMan->pollEvent(event)) {
 		switch (event.type) {
 		case Common::EVENT_LBUTTONUP:
 			return true;
+
+		case Common::EVENT_MOUSEMOVE:
+			updateScreen = true;
+			break;
+
 		default:
 			break;
 		}
 	}
+
+	if (updateScreen)
+		_system->updateScreen();
 	return false;
 }
 


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