summaryrefslogtreecommitdiff
path: root/src/gui/gui.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2006-07-30 14:33:28 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2006-07-30 14:33:28 +0000
commitaff167beefadc32add4b44626cc2f1cbef800c7b (patch)
tree43796105cc107ec55742e88562e064d8031d3b23 /src/gui/gui.cpp
parent18b73fdadd715d356416a95c31a25b3293fa2596 (diff)
downloadmana-aff167beefadc32add4b44626cc2f1cbef800c7b.tar.gz
mana-aff167beefadc32add4b44626cc2f1cbef800c7b.tar.bz2
mana-aff167beefadc32add4b44626cc2f1cbef800c7b.tar.xz
mana-aff167beefadc32add4b44626cc2f1cbef800c7b.zip
Updated TMW to be compatible with Guichan 0.5.0 (merged from guichan-0.5.0
branch).
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r--src/gui/gui.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index cb79e54b..c980389f 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -28,7 +28,7 @@
#include <guichan/imagefont.hpp>
#ifdef USE_OPENGL
-#include <guichan/opengl/openglimageloader.hpp>
+#include "../resources/openglsdlimageloader.h"
#endif
#include <guichan/sdl/sdlinput.hpp>
@@ -92,16 +92,14 @@ Gui::Gui(Graphics *graphics):
{
// Set graphics
setGraphics(graphics);
+
+ // Set image loader
#ifdef USE_OPENGL
if (config.getValue("opengl", 0)) {
-
- // Set image loader
- mHostImageLoader = new SDLImageLoader();
- mImageLoader = new gcn::OpenGLImageLoader(mHostImageLoader);
+ mImageLoader = new OpenGLSDLImageLoader();
} else
#endif
{
- // Set image loader
mImageLoader = new SDLImageLoader();
}