diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-08-13 12:49:52 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-08-13 12:49:52 +0000 |
commit | 10b881f997384378a299bff358716db5183b65a5 (patch) | |
tree | 2231d834a69c1db68980c1ccefdc6586df351fc0 /src/gui/browserbox.cpp | |
parent | da5a71f65682dbb3f830be4d5ffcd0046aa7b7ce (diff) | |
download | mana-client-10b881f997384378a299bff358716db5183b65a5.tar.gz mana-client-10b881f997384378a299bff358716db5183b65a5.tar.bz2 mana-client-10b881f997384378a299bff358716db5183b65a5.tar.xz mana-client-10b881f997384378a299bff358716db5183b65a5.zip |
Huge header cleanup to reduce dependencies and compile time.
Diffstat (limited to 'src/gui/browserbox.cpp')
-rw-r--r-- | src/gui/browserbox.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
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 <guichan.hpp> -#include "../graphics.h" +#include <guichan/imagefont.hpp> + #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(); } } |