summaryrefslogtreecommitdiff
path: root/src/gui/scrollarea.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/scrollarea.cpp')
-rw-r--r--src/gui/scrollarea.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/scrollarea.cpp b/src/gui/scrollarea.cpp
index cfefe898..863f8a85 100644
--- a/src/gui/scrollarea.cpp
+++ b/src/gui/scrollarea.cpp
@@ -266,7 +266,8 @@ void ScrollArea::drawButton(gcn::Graphics *graphics, BUTTON_DIR dir)
break;
}
- buttons[dir][state]->draw(screen, x + dim.x, y + dim.y);
+ dynamic_cast<Graphics*>(graphics)->drawImage(
+ buttons[dir][state], x + dim.x, y + dim.y);
}
void ScrollArea::drawUpButton(gcn::Graphics *graphics)