aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorTorbjörn Andersson2006-06-28 04:52:48 +0000
committerTorbjörn Andersson2006-06-28 04:52:48 +0000
commitc367dbfc36af58f589ff320ff69eb072dac518e5 (patch)
treeb55783579be5edfb978b2e230509b9b908bf7b03 /gui
parent9767fa5aac72dc084d1b9320fea291da68dbf9b7 (diff)
downloadscummvm-rg350-c367dbfc36af58f589ff320ff69eb072dac518e5.tar.gz
scummvm-rg350-c367dbfc36af58f589ff320ff69eb072dac518e5.tar.bz2
scummvm-rg350-c367dbfc36af58f589ff320ff69eb072dac518e5.zip
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. svn-id: r23330
Diffstat (limited to 'gui')
-rw-r--r--gui/widget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/widget.cpp b/gui/widget.cpp
index ccf9ed78b3..5079a6f31a 100644
--- a/gui/widget.cpp
+++ b/gui/widget.cpp
@@ -265,7 +265,7 @@ SliderWidget::SliderWidget(GuiObject *boss, const String &name, uint32 cmd)
}
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;