[Scummvm-cvs-logs] SF.net SVN: scummvm: [23330] scummvm/trunk/gui/widget.cpp

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Wed Jun 28 06:52:52 CEST 2006


Revision: 23330
Author:   eriktorbjorn
Date:     2006-06-27 21:52:48 -0700 (Tue, 27 Jun 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=23330&view=rev

Log Message:
-----------
Since the slider's handleMouseMoved() clips the new value, there's no need to
test if X >= 0. Dragging the slider quickly, we may never get an event where X
is exactly 0, so all it does is to make it more difficult to drag the slider to
its minimum value.

Modified Paths:
--------------
    scummvm/trunk/gui/widget.cpp
Modified: scummvm/trunk/gui/widget.cpp
===================================================================
--- scummvm/trunk/gui/widget.cpp	2006-06-28 04:13:15 UTC (rev 23329)
+++ scummvm/trunk/gui/widget.cpp	2006-06-28 04:52:48 UTC (rev 23330)
@@ -265,7 +265,7 @@
 }
 
 void SliderWidget::handleMouseMoved(int x, int y, int button) {
-	if (isEnabled() && _isDragging && x >= 0) {
+	if (isEnabled() && _isDragging) {
 		int newValue = posToValue(x);
 		if (newValue < _valueMin)
 			newValue = _valueMin;


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