diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-03-20 12:50:26 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-03-20 12:50:26 +0000 |
commit | 90e5ce7e958418f0d39d38112d33d3190a78baea (patch) | |
tree | 012150b22e971e44d0f7e795ef48384e15392940 /src/gui/slider.cpp | |
parent | 9ca202ae89bbe60f2cd1c8e3249a4fe3f8972a2b (diff) | |
download | mana-90e5ce7e958418f0d39d38112d33d3190a78baea.tar.gz mana-90e5ce7e958418f0d39d38112d33d3190a78baea.tar.bz2 mana-90e5ce7e958418f0d39d38112d33d3190a78baea.tar.xz mana-90e5ce7e958418f0d39d38112d33d3190a78baea.zip |
TMW now uses latest Guichan CVS, and doesn't work with Guichan 0.2.0 anymore!
Also fixed a crash on clicking wallpaper in login phase.
Diffstat (limited to 'src/gui/slider.cpp')
-rw-r--r-- | src/gui/slider.cpp | 4 |
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); |