diff options
author | Johannes Schickel | 2006-06-04 17:41:49 +0000 |
---|---|---|
committer | Johannes Schickel | 2006-06-04 17:41:49 +0000 |
commit | 60f19a0f2cc98d7f936d1dd3915b3408b9f262f6 (patch) | |
tree | dffc1694ea4eddd9ded77d59b7cfd3a66cd66e89 /gui | |
parent | b5bc1c82fa1e22091d5cfffa1217348acff8d0b2 (diff) | |
download | scummvm-rg350-60f19a0f2cc98d7f936d1dd3915b3408b9f262f6.tar.gz scummvm-rg350-60f19a0f2cc98d7f936d1dd3915b3408b9f262f6.tar.bz2 scummvm-rg350-60f19a0f2cc98d7f936d1dd3915b3408b9f262f6.zip |
Fixes slider drawing.
svn-id: r22918
Diffstat (limited to 'gui')
-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 38e8cfb322..4af135a7ee 100644 --- a/gui/widget.cpp +++ b/gui/widget.cpp @@ -299,11 +299,11 @@ void SliderWidget::drawWidget(bool hilite) { } int SliderWidget::valueToPos(int value) { - return ((_w - 4) * (value - _valueMin) / (_valueMax - _valueMin)); + return (_w * (value - _valueMin) / (_valueMax - _valueMin)); } int SliderWidget::posToValue(int pos) { - return (pos) * (_valueMax - _valueMin) / (_w - 4) + _valueMin; + return (pos) * (_valueMax - _valueMin) / _w + _valueMin; } #pragma mark - |