summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-04-04 10:38:22 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-04-04 10:38:22 +0000
commit2963c2b0e54742804d52b13b00185c314441a99a (patch)
tree72044b5cc7fc8db7f7ee612693b28651a75264d1 /src
parent208b049aea91b709c44aaade17aa39a269fee01b (diff)
downloadmana-2963c2b0e54742804d52b13b00185c314441a99a.tar.gz
mana-2963c2b0e54742804d52b13b00185c314441a99a.tar.bz2
mana-2963c2b0e54742804d52b13b00185c314441a99a.tar.xz
mana-2963c2b0e54742804d52b13b00185c314441a99a.zip
Just a fast fix for the scollbars look
Diffstat (limited to 'src')
-rw-r--r--src/gui/scrollarea.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/gui/scrollarea.cpp b/src/gui/scrollarea.cpp
index fc1f38d3..ffeb9a1d 100644
--- a/src/gui/scrollarea.cpp
+++ b/src/gui/scrollarea.cpp
@@ -179,7 +179,12 @@ void ScrollArea::drawVBar(gcn::Graphics *graphics)
void ScrollArea::drawHBar(gcn::Graphics *graphics)
{
- gcn::ScrollArea::drawHBar(graphics);
+ int x, y;
+ gcn::Rectangle dim = getHorizontalBarDimension();
+ getAbsolutePosition(x, y);
+
+ ((Graphics*)graphics)->drawImageRect(
+ x + dim.x, y + dim.y, dim.width, dim.height, background);
}
void ScrollArea::drawVMarker(gcn::Graphics *graphics)
@@ -194,5 +199,10 @@ void ScrollArea::drawVMarker(gcn::Graphics *graphics)
void ScrollArea::drawHMarker(gcn::Graphics *graphics)
{
- gcn::ScrollArea::drawHMarker(graphics);
+ int x, y;
+ gcn::Rectangle dim = getHorizontalMarkerDimension();
+ getAbsolutePosition(x, y);
+
+ ((Graphics*)graphics)->drawImageRect(
+ x + dim.x, y + dim.y, dim.width, dim.height, vMarker);
}