diff options
author | Max Horn | 2003-11-03 01:00:26 +0000 |
---|---|---|
committer | Max Horn | 2003-11-03 01:00:26 +0000 |
commit | 9f3edb11c5369094c2c3af8ad72adfb2e396abdc (patch) | |
tree | 6a3c31aaf5315490f88edfe4d913564e7b9d45f4 /gui/widget.cpp | |
parent | cfd658cd299bb10474b164cc4b453dddfc2e0e2a (diff) | |
download | scummvm-rg350-9f3edb11c5369094c2c3af8ad72adfb2e396abdc.tar.gz scummvm-rg350-9f3edb11c5369094c2c3af8ad72adfb2e396abdc.tar.bz2 scummvm-rg350-9f3edb11c5369094c2c3af8ad72adfb2e396abdc.zip |
added a builtin label to PopUpWidget
svn-id: r11076
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; |