diff options
author | Torbjörn Andersson | 2005-05-18 15:58:39 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2005-05-18 15:58:39 +0000 |
commit | 35dda2b636825c4273a0d13cd1b65ae49fdb65ca (patch) | |
tree | ce9aaeefe7b6b3c2cbc2ec1e7347df7f7be5e5cf /gui/widget.cpp | |
parent | 51f8aa50b15ac99903f5e4ad3c5422d5473bef85 (diff) | |
download | scummvm-rg350-35dda2b636825c4273a0d13cd1b65ae49fdb65ca.tar.gz scummvm-rg350-35dda2b636825c4273a0d13cd1b65ae49fdb65ca.tar.bz2 scummvm-rg350-35dda2b636825c4273a0d13cd1b65ae49fdb65ca.zip |
Added big slider widget. There is nothing in the widget itself that's
dependent on size, so the two different sizes are handled through a new
addSlider() function.
Figuring out why the big widget won't let you set volume to 0 is left as an
exercise for the reader.
svn-id: r18170
Diffstat (limited to 'gui/widget.cpp')
-rw-r--r-- | gui/widget.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gui/widget.cpp b/gui/widget.cpp index 8426f1577f..f91c2154bb 100644 --- a/gui/widget.cpp +++ b/gui/widget.cpp @@ -238,8 +238,7 @@ void CheckboxWidget::drawWidget(bool hilite) { SliderWidget::SliderWidget(GuiObject *boss, int x, int y, int w, int h, uint32 cmd) : Widget(boss, x, y, w, h), CommandSender(boss), - _cmd(cmd), _value(0), _oldValue(0), _valueMin(0), _valueMax(100), _isDragging(false) - { + _cmd(cmd), _value(0), _oldValue(0), _valueMin(0), _valueMax(100), _isDragging(false) { _flags = WIDGET_ENABLED | WIDGET_TRACK_MOUSE | WIDGET_CLEARBG; _type = kSliderWidget; } |