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/gui.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/gui.cpp')
-rw-r--r-- | src/gui/gui.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 1e101c5b..737b880c 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -56,7 +56,9 @@ Gui::Gui(Graphics *graphics): guiGraphics = graphics; //setGraphics(graphics); if (useOpenGL) { +#ifdef USE_OPENGL setGraphics((gcn::OpenGLGraphics*)graphics); +#endif } else { setGraphics((gcn::SDLGraphics*)graphics); @@ -212,8 +214,10 @@ void Gui::logic() void Gui::draw() { if (useOpenGL) { +#ifdef USE_OPENGL dynamic_cast<gcn::OpenGLGraphics*>(guiGraphics)->pushClipArea(guiTop->getDimension()); guiTop->draw((gcn::OpenGLGraphics*)guiGraphics); +#endif } else { dynamic_cast<gcn::SDLGraphics*>(guiGraphics)->pushClipArea(guiTop->getDimension()); @@ -230,7 +234,9 @@ void Gui::draw() } if (useOpenGL) { +#ifdef USE_OPENGL dynamic_cast<gcn::OpenGLGraphics*>(guiGraphics)->popClipArea(); +#endif } else { dynamic_cast<gcn::SDLGraphics*>(guiGraphics)->popClipArea(); |