diff options
Diffstat (limited to 'src/gui/browserbox.cpp')
-rw-r--r-- | src/gui/browserbox.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/browserbox.cpp b/src/gui/browserbox.cpp index 06094139..3886a401 100644 --- a/src/gui/browserbox.cpp +++ b/src/gui/browserbox.cpp @@ -22,6 +22,7 @@ */ #include "browserbox.h" +#include "gui.h" int BrowserBox::instances = 0; gcn::ImageFont* BrowserBox::browserFont; @@ -38,10 +39,14 @@ BrowserBox::BrowserBox(unsigned int mode): if (instances == 0) { +#ifdef OPENGL_SUPPORT browserFont = new gcn::ImageFont( TMW_DATADIR "data/graphics/gui/browserfont.png", " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567" "89:@!\"$%&/=?^+*#[]{}()<>_;'.,\\|-~`"); +#else + browserFont = gui->getFont(); +#endif } instances++; } |