summaryrefslogtreecommitdiff
path: root/src/gui/ministatus.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/ministatus.cpp')
-rw-r--r--src/gui/ministatus.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/ministatus.cpp b/src/gui/ministatus.cpp
index adfda434..eb2ebf53 100644
--- a/src/gui/ministatus.cpp
+++ b/src/gui/ministatus.cpp
@@ -27,6 +27,7 @@
#include <sstream>
#include "gui.h"
+#include <guichan/imagefont.hpp>
#include "progressbar.h"
#include "../playerinfo.h"
@@ -49,8 +50,10 @@ MiniStatusWindow::MiniStatusWindow():
hpLabel = new gcn::Label("");
mpLabel = new gcn::Label("");
- hpLabel->setFont((gcn::Font*)speechFont);
- mpLabel->setFont((gcn::Font*)speechFont);
+#ifndef USE_OPENGL
+ hpLabel->setFont(speechFont);
+ mpLabel->setFont(speechFont);
+#endif
add(hpBar);
add(mpBar);