[Scummvm-cvs-logs] SF.net SVN: scummvm:[35667] scummvm/trunk/gui/dialog.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Fri Jan 2 04:03:06 CET 2009
Revision: 35667
http://scummvm.svn.sourceforge.net/scummvm/?rev=35667&view=rev
Author: lordhoto
Date: 2009-01-02 03:03:06 +0000 (Fri, 02 Jan 2009)
Log Message:
-----------
Reverted the handling of mouse move events, now the slider widget should be highlighted correctly again.
Modified Paths:
--------------
scummvm/trunk/gui/dialog.cpp
Modified: scummvm/trunk/gui/dialog.cpp
===================================================================
--- scummvm/trunk/gui/dialog.cpp 2009-01-02 02:48:06 UTC (rev 35666)
+++ scummvm/trunk/gui/dialog.cpp 2009-01-02 03:03:06 UTC (rev 35667)
@@ -294,10 +294,7 @@
_mouseWidget = w;
}
- // We only sent mouse move events under the following conditions:
- // 1) We have a widget in drag mode
- // 2) The widget wants to track the mouse movement
- w = _dragWidget;
+ // We only sent mouse move events when the widget requests to be informed about them.
if (w && (w->getFlags() & WIDGET_TRACK_MOUSE))
w->handleMouseMoved(x - (w->getAbsX() - _x), y - (w->getAbsY() - _y), button);
}
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