diff options
Diffstat (limited to 'src/gui/listbox.cpp')
-rw-r--r-- | src/gui/listbox.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/gui/listbox.cpp b/src/gui/listbox.cpp index fee67cbd..0dd9203c 100644 --- a/src/gui/listbox.cpp +++ b/src/gui/listbox.cpp @@ -48,16 +48,8 @@ void ListBox::draw(gcn::Graphics *graphics) // Draw rectangle below the selected list element if (mSelected >= 0) { - if (useOpenGL) { -#ifdef USE_OPENGL - dynamic_cast<gcn::OpenGLGraphics*>(graphics)->fillRectangle( - gcn::Rectangle(0, fontHeight * mSelected, getWidth(), fontHeight)); -#endif - } - else { - dynamic_cast<gcn::SDLGraphics*>(graphics)->fillRectangle( - gcn::Rectangle(0, fontHeight * mSelected, getWidth(), fontHeight)); - } + graphics->fillRectangle( + gcn::Rectangle(0, fontHeight * mSelected, getWidth(), fontHeight)); } // Draw the list elements |