diff options
Diffstat (limited to 'src/gui/browserbox.cpp')
-rw-r--r-- | src/gui/browserbox.cpp | 13 |
1 files changed, 7 insertions, 6 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"), |