[Scummvm-cvs-logs] SF.net SVN: scummvm: [21316] scummvm/trunk/engines/kyra/screen.cpp
eriktorbjorn at users.sourceforge.net
eriktorbjorn at users.sourceforge.net
Wed Mar 15 07:38:06 CET 2006
Revision: 21316
Author: eriktorbjorn
Date: 2006-03-15 07:37:42 -0800 (Wed, 15 Mar 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=21316&view=rev
Log Message:
-----------
This is a bit of a hack: Before showing the mouse cursor, take care of any
pending events so that the it won't have to do a little dance, catching up,
every time you enter a room.
Modified Paths:
--------------
scummvm/trunk/engines/kyra/screen.cpp
Modified: scummvm/trunk/engines/kyra/screen.cpp
===================================================================
--- scummvm/trunk/engines/kyra/screen.cpp 2006-03-15 15:35:52 UTC (rev 21315)
+++ scummvm/trunk/engines/kyra/screen.cpp 2006-03-15 15:37:42 UTC (rev 21316)
@@ -1775,8 +1775,13 @@
void Screen::showMouse() {
debugC( 9, kDebugLevelScreen, "Screen::showMouse()");
- if (_mouseLockCount == 1)
+ if (_mouseLockCount == 1) {
+ // HACK: Flush the event queue before showing the mouse, so
+ // that the mouse cursor won't do a little dance catching
+ // up with the mouse movements when entering a new room.
+ _vm->delay(0);
_system->showMouse(true);
+ }
if (_mouseLockCount > 0)
_mouseLockCount--;
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