summaryrefslogtreecommitdiff
path: root/src/gui/slider.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/slider.cpp')
-rw-r--r--src/gui/slider.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/slider.cpp b/src/gui/slider.cpp
index c0f494c4..eb7ac1aa 100644
--- a/src/gui/slider.cpp
+++ b/src/gui/slider.cpp
@@ -68,7 +68,7 @@ void Slider::init()
w = 9; h = 10;
hGrip = slider->getSubImage(x, y, w, h);
- mMarkerWidth = hGrip->getWidth();
+ setMarkerLength(hGrip->getWidth());
}
void Slider::draw(gcn::Graphics *graphics)
@@ -99,7 +99,7 @@ void Slider::drawMarker(gcn::Graphics *graphics)
int x, y;
getAbsolutePosition(x, y);
- x += mMarkerPosition;
+ x += getMarkerPosition();
y += (h - hGrip->getHeight()) / 2;
hGrip->draw(screen, x, y);