diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-07-27 21:55:20 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-07-27 21:55:20 +0000 |
commit | d15d76976b6e57a9f421ab034c6f841051b962f3 (patch) | |
tree | ab0c37c90af9f76158b96f195c05be9b221e9f42 /src/gui/browserbox.cpp | |
parent | aa362286c725e17ec88aa46f8f6af9ca90d744b3 (diff) | |
download | mana-d15d76976b6e57a9f421ab034c6f841051b962f3.tar.gz mana-d15d76976b6e57a9f421ab034c6f841051b962f3.tar.bz2 mana-d15d76976b6e57a9f421ab034c6f841051b962f3.tar.xz mana-d15d76976b6e57a9f421ab034c6f841051b962f3.zip |
Committing merging opengl and sdl part 3 by Andrej
Diffstat (limited to 'src/gui/browserbox.cpp')
-rw-r--r-- | src/gui/browserbox.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/browserbox.cpp b/src/gui/browserbox.cpp index 56539455..58877b6e 100644 --- a/src/gui/browserbox.cpp +++ b/src/gui/browserbox.cpp @@ -210,7 +210,9 @@ void BrowserBox::draw(gcn::Graphics* graphics) { graphics->setColor(gcn::Color(BGCOLOR)); if (useOpenGL) { +#ifdef USE_OPENGL dynamic_cast<gcn::OpenGLGraphics*>(graphics)->fillRectangle(gcn::Rectangle(0, 0, getWidth(), getHeight())); +#endif } else { dynamic_cast<gcn::SDLGraphics*>(graphics)->fillRectangle(gcn::Rectangle(0, 0, getWidth(), getHeight())); @@ -223,6 +225,7 @@ void BrowserBox::draw(gcn::Graphics* graphics) { graphics->setColor(gcn::Color(HIGHLIGHT)); if (useOpenGL) { +#ifdef USE_OPENGL dynamic_cast<gcn::OpenGLGraphics*>(graphics)->fillRectangle( gcn::Rectangle( mLinks[mSelectedLink].x1, @@ -230,6 +233,7 @@ void BrowserBox::draw(gcn::Graphics* graphics) mLinks[mSelectedLink].x2 - mLinks[mSelectedLink].x1, mLinks[mSelectedLink].y2 - mLinks[mSelectedLink].y1 )); +#endif } else { dynamic_cast<gcn::SDLGraphics*>(graphics)->fillRectangle( |