From 0f730185d2e73bf80b6a53952c626a7b22ab5055 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Tue, 20 Sep 2005 14:32:06 +0000 Subject: Fixed use of Enter for closing death and weight notices, and changed glColor4f to glColor4ub. --- src/gui/window.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/gui/window.cpp') diff --git a/src/gui/window.cpp b/src/gui/window.cpp index acb23cd4..642b891f 100644 --- a/src/gui/window.cpp +++ b/src/gui/window.cpp @@ -161,15 +161,16 @@ void Window::setWindowContainer(WindowContainer *wc) void Window::draw(gcn::Graphics* graphics) { - dynamic_cast(graphics)->drawImageRect(0, 0, getWidth(), getHeight(), - border); + Graphics *g = (Graphics*)graphics; + + g->drawImageRect(0, 0, getWidth(), getHeight(), border); // Draw grip if (resizable) { - dynamic_cast(graphics)->drawImage(Window::resizeGrip, - getWidth() - resizeGrip->getWidth(), - getHeight() - resizeGrip->getHeight()); + g->drawImage(Window::resizeGrip, + getWidth() - resizeGrip->getWidth(), + getHeight() - resizeGrip->getHeight()); } // Draw title -- cgit v1.2.3-70-g09d2