From 2963c2b0e54742804d52b13b00185c314441a99a Mon Sep 17 00:00:00 2001 From: Eugenio Favalli Date: Mon, 4 Apr 2005 10:38:22 +0000 Subject: Just a fast fix for the scollbars look --- src/gui/scrollarea.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/gui/scrollarea.cpp') 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); } -- cgit v1.2.3-60-g2f50