diff options
Diffstat (limited to 'gui/widget.cpp')
-rw-r--r-- | gui/widget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/widget.cpp b/gui/widget.cpp index 451f74af5d..35e8535479 100644 --- a/gui/widget.cpp +++ b/gui/widget.cpp @@ -200,7 +200,7 @@ void CheckboxWidget::drawWidget(bool hilite) { #pragma mark - -SliderWidget::SliderWidget(GuiObject *boss, int x, int y, int w, int h, const String &label, int labelWidth, uint32 cmd, uint8 hotkey) +SliderWidget::SliderWidget(GuiObject *boss, int x, int y, int w, int h, const String &label, uint labelWidth, uint32 cmd, uint8 hotkey) : ButtonWidget(boss, x, y, w, h, label, cmd, hotkey), _value(0), _oldValue(0),_valueMin(0), _valueMax(100), _isDragging(false), _labelWidth(labelWidth) { @@ -211,7 +211,7 @@ SliderWidget::SliderWidget(GuiObject *boss, int x, int y, int w, int h, const St void SliderWidget::handleMouseMoved(int x, int y, int button) { // TODO: when the mouse is dragged outside the widget, the slider should // snap back to the old value. - if (isEnabled() && _isDragging && x >= _labelWidth) { + if (isEnabled() && _isDragging && x >= (int)_labelWidth) { int newValue = posToValue(x - _labelWidth); if (newValue < _valueMin) newValue = _valueMin; |