summaryrefslogtreecommitdiff
path: root/src/gui/window.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-09-20 14:32:06 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-09-20 14:32:06 +0000
commit0f730185d2e73bf80b6a53952c626a7b22ab5055 (patch)
treecacbe04bb3855ade0d3fa9c30302036e1be9a7ec /src/gui/window.cpp
parentaa786b1b7898c9a4cd47135fabd3b1558b6d71c5 (diff)
downloadmana-0f730185d2e73bf80b6a53952c626a7b22ab5055.tar.gz
mana-0f730185d2e73bf80b6a53952c626a7b22ab5055.tar.bz2
mana-0f730185d2e73bf80b6a53952c626a7b22ab5055.tar.xz
mana-0f730185d2e73bf80b6a53952c626a7b22ab5055.zip
Fixed use of Enter for closing death and weight notices, and changed glColor4f
to glColor4ub.
Diffstat (limited to 'src/gui/window.cpp')
-rw-r--r--src/gui/window.cpp11
1 files changed, 6 insertions, 5 deletions
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*>(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*>(graphics)->drawImage(Window::resizeGrip,
- getWidth() - resizeGrip->getWidth(),
- getHeight() - resizeGrip->getHeight());
+ g->drawImage(Window::resizeGrip,
+ getWidth() - resizeGrip->getWidth(),
+ getHeight() - resizeGrip->getHeight());
}
// Draw title