From 10b881f997384378a299bff358716db5183b65a5 Mon Sep 17 00:00:00 2001 From: Björn Steinbrink Date: Sat, 13 Aug 2005 12:49:52 +0000 Subject: Huge header cleanup to reduce dependencies and compile time. --- src/gui/browserbox.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/gui/browserbox.cpp') diff --git a/src/gui/browserbox.cpp b/src/gui/browserbox.cpp index 504fb987..e00494cd 100644 --- a/src/gui/browserbox.cpp +++ b/src/gui/browserbox.cpp @@ -21,11 +21,14 @@ * $Id$ */ -#include -#include "../graphics.h" +#include + #include "../main.h" +#ifdef USE_OPENGL #include "../resources/resourcemanager.h" +#endif #include "browserbox.h" +#include "linkhandler.h" #include "gui.h" int BrowserBox::instances = 0; @@ -44,6 +47,7 @@ BrowserBox::BrowserBox(unsigned int mode): if (instances == 0) { +#ifdef USE_OPENGL if (useOpenGL) { browserFont = new gcn::ImageFont( ResourceManager::getInstance()->getRealPath( @@ -51,8 +55,9 @@ BrowserBox::BrowserBox(unsigned int mode): " abcdefghijklmnopqrstuvwxyz" "ABCDEFGHIJKLMNOPQRSTUVWXYZ01234567" "89:@!\"$%&/=?^+*#[]{}()<>_;'.,\\|-~`"); - } - else { + } else +#endif + { browserFont = gui->getFont(); } } -- cgit v1.2.3-70-g09d2