diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-09-27 14:54:09 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-09-27 14:54:09 +0000 |
commit | 285da0d05eb2e6b680a8dfc497cf4ecab75b7aa4 (patch) | |
tree | 0a4e4169ffada0fbdc25fd91822a8c0fe678571c /src/gui/scrollarea.cpp | |
parent | c24856707233ceb3995e43f8f7da63e65999df1e (diff) | |
download | mana-client-285da0d05eb2e6b680a8dfc497cf4ecab75b7aa4.tar.gz mana-client-285da0d05eb2e6b680a8dfc497cf4ecab75b7aa4.tar.bz2 mana-client-285da0d05eb2e6b680a8dfc497cf4ecab75b7aa4.tar.xz mana-client-285da0d05eb2e6b680a8dfc497cf4ecab75b7aa4.zip |
Merged another bunch of changes from trunk to 0.0 to reduce the difference.
Diffstat (limited to 'src/gui/scrollarea.cpp')
-rw-r--r-- | src/gui/scrollarea.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/scrollarea.cpp b/src/gui/scrollarea.cpp index 903ec95d..816f94a8 100644 --- a/src/gui/scrollarea.cpp +++ b/src/gui/scrollarea.cpp @@ -228,8 +228,8 @@ void ScrollArea::drawBorder(gcn::Graphics *graphics) int h = getHeight() + bs * 2; if (mOpaque) { - dynamic_cast<Graphics*>(graphics)->drawImageRect(0, 0, w, h, - background); + static_cast<Graphics*>(graphics)-> + drawImageRect(0, 0, w, h, background); } } @@ -269,8 +269,8 @@ void ScrollArea::drawButton(gcn::Graphics *graphics, BUTTON_DIR dir) break; } - dynamic_cast<Graphics*>(graphics)->drawImage( - buttons[dir][state], dim.x, dim.y); + static_cast<Graphics*>(graphics)-> + drawImage(buttons[dir][state], dim.x, dim.y); } void ScrollArea::drawUpButton(gcn::Graphics *graphics) @@ -313,14 +313,14 @@ void ScrollArea::drawVMarker(gcn::Graphics *graphics) { gcn::Rectangle dim = getVerticalMarkerDimension(); - dynamic_cast<Graphics*>(graphics)->drawImageRect( - dim.x, dim.y, dim.width, dim.height, vMarker); + static_cast<Graphics*>(graphics)-> + drawImageRect(dim.x, dim.y, dim.width, dim.height, vMarker); } void ScrollArea::drawHMarker(gcn::Graphics *graphics) { gcn::Rectangle dim = getHorizontalMarkerDimension(); - dynamic_cast<Graphics*>(graphics)->drawImageRect( - dim.x, dim.y, dim.width, dim.height, vMarker); + static_cast<Graphics*>(graphics)-> + drawImageRect(dim.x, dim.y, dim.width, dim.height, vMarker); } |