From 9e4f25acd69489d949104eebec690ce5586849e6 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Tue, 26 Jul 2005 22:33:53 +0000 Subject: OpenGL/SDL combined in the same exe. Not in the cutest way, but we'll find a nicer approach after the release. --- src/gui/button.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/button.cpp') diff --git a/src/gui/button.cpp b/src/gui/button.cpp index 10fbe625..0fe207c7 100644 --- a/src/gui/button.cpp +++ b/src/gui/button.cpp @@ -105,7 +105,7 @@ void Button::draw(gcn::Graphics* graphics) int x, y; getAbsolutePosition(x, y); - ((Graphics*)graphics)->drawImageRect(x, y, getWidth(), getHeight(), + dynamic_cast(graphics)->drawImageRect(x, y, getWidth(), getHeight(), button[mode]); graphics->setColor(getForegroundColor()); @@ -127,7 +127,7 @@ void Button::draw(gcn::Graphics* graphics) throw GCN_EXCEPTION("Button::draw. Uknown alignment."); } - graphics->setFont(getFont()); + graphics->setFont((gcn::ImageFont*)getFont()); if (isPressed()) { graphics->drawText(getCaption(), textX + 1, textY + 1, getAlignment()); -- cgit v1.2.3-70-g09d2