diff options
author | Max Horn | 2002-07-26 15:34:04 +0000 |
---|---|---|
committer | Max Horn | 2002-07-26 15:34:04 +0000 |
commit | 89a65b7c015b919f97456e1883390986184e09b5 (patch) | |
tree | e4b9836b3ae67aa850fac91170cfa96bb0a0087d /gui/widget.h | |
parent | 84c8d4b689168335da090bae57f4a162ee10018d (diff) | |
download | scummvm-rg350-89a65b7c015b919f97456e1883390986184e09b5.tar.gz scummvm-rg350-89a65b7c015b919f97456e1883390986184e09b5.tar.bz2 scummvm-rg350-89a65b7c015b919f97456e1883390986184e09b5.zip |
fixed crash on some systems by setting defaults for the slider value range
svn-id: r4636
Diffstat (limited to 'gui/widget.h')
-rw-r--r-- | gui/widget.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/widget.h b/gui/widget.h index 7f1e663e2e..af3a0dd854 100644 --- a/gui/widget.h +++ b/gui/widget.h @@ -171,16 +171,16 @@ protected: class SliderWidget : public ButtonWidget { protected: int _value, _old_value; - int _valueMin, _valueMax, _valueDelta; + int _valueMin, _valueMax; bool _isDragging; public: SliderWidget(Dialog *boss, int x, int y, int w, int h, const char *label, uint32 cmd = 0, uint8 hotkey = 0); void setValue(uint8 value) { _value = value; } uint8 getValue() const { return _value; } - void setMinValue(int value) { _valueMin = value; _valueDelta = _valueMax - _valueMin; } + void setMinValue(int value) { _valueMin = value; } int getMinValue() const { return _valueMin; } - void setMaxValue(int value) { _valueMax = value; _valueDelta = _valueMax - _valueMin; } + void setMaxValue(int value) { _valueMax = value; } int getMaxValue() const { return _valueMax; } void handleMouseMoved(int x, int y, int button); |