summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/browserbox.cpp13
-rw-r--r--src/gui/gui.cpp3
2 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/browserbox.cpp b/src/gui/browserbox.cpp
index 5cae9fb7..6fc91858 100644
--- a/src/gui/browserbox.cpp
+++ b/src/gui/browserbox.cpp
@@ -21,16 +21,17 @@
* $Id$
*/
+#include "browserbox.h"
+
#include <guichan/imagefont.hpp>
-#ifdef USE_OPENGL
-#include "../resources/resourcemanager.h"
-#endif
-#include "browserbox.h"
#include "linkhandler.h"
#include "gui.h"
-extern bool useOpenGL;
+#ifdef USE_OPENGL
+#include "../configuration.h"
+#include "../resources/resourcemanager.h"
+#endif
int BrowserBox::instances = 0;
gcn::ImageFont* BrowserBox::browserFont;
@@ -49,7 +50,7 @@ BrowserBox::BrowserBox(unsigned int mode):
if (instances == 0)
{
#ifdef USE_OPENGL
- if (useOpenGL) {
+ if (config.getValue("opengl", 0)) {
browserFont = new gcn::ImageFont(
ResourceManager::getInstance()->getRealPath(
"graphics/gui/browserfont.png"),
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index 2eaa9d76..197177cd 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -52,7 +52,6 @@
#include "../resources/resourcemanager.h"
extern Being* autoTarget;
-extern bool useOpenGL;
// Guichan stuff
Gui *gui;
@@ -72,7 +71,7 @@ Gui::Gui(Graphics *graphics):
mCustomCursor(false)
{
#ifdef USE_OPENGL
- if (useOpenGL) {
+ if (config.getValue("opengl", 0)) {
// Set graphics
setGraphics((gcn::OpenGLGraphics*)graphics);