diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-07-27 22:30:19 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-07-27 22:30:19 +0000 |
commit | d61fdaf1932724f86a68484c4a05195ca270646e (patch) | |
tree | c5b9fb13007679401ed0b0937660fac491b69a5c /src/gui/gui.cpp | |
parent | 88b3f92061c703fdf6cf0f970684fb77de6d8795 (diff) | |
download | mana-d61fdaf1932724f86a68484c4a05195ca270646e.tar.gz mana-d61fdaf1932724f86a68484c4a05195ca270646e.tar.bz2 mana-d61fdaf1932724f86a68484c4a05195ca270646e.tar.xz mana-d61fdaf1932724f86a68484c4a05195ca270646e.zip |
Removed useless yet costly dynamic casts.
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r-- | src/gui/gui.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index b9b15429..8f1cc7f4 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -213,9 +213,8 @@ Gui::draw() if ((SDL_GetAppState() & SDL_APPMOUSEFOCUS || button & SDL_BUTTON(1)) && mCustomCursor) { - dynamic_cast<Graphics*>(mGraphics)->drawImage(mMouseCursor, - mouseX - 5, - mouseY - 2); + static_cast<Graphics*>(mGraphics)-> + drawImage(mMouseCursor, mouseX - 5, mouseY - 2); } mGraphics->popClipArea(); |