From 8415f7791ea8dc84148c65d04c288d8d12eb50bf Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Tue, 4 Oct 2005 19:11:19 +0000 Subject: Fixed the black font bug in opengl. Only shows the current HP/MP in ministatus as requested. --- src/gui/ministatus.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/ministatus.cpp b/src/gui/ministatus.cpp index eb2ebf53..438470d8 100644 --- a/src/gui/ministatus.cpp +++ b/src/gui/ministatus.cpp @@ -50,10 +50,10 @@ MiniStatusWindow::MiniStatusWindow(): hpLabel = new gcn::Label(""); mpLabel = new gcn::Label(""); -#ifndef USE_OPENGL hpLabel->setFont(speechFont); mpLabel->setFont(speechFont); -#endif + hpLabel->setForegroundColor(gcn::Color(255,255,255)); + mpLabel->setForegroundColor(gcn::Color(255,255,255)); add(hpBar); add(mpBar); @@ -96,11 +96,11 @@ void MiniStatusWindow::update() // Update and center labels std::stringstream updatedText; - updatedText << player_info->hp << "/" << player_info->maxHp; + updatedText << player_info->hp; hpLabel->setCaption(updatedText.str()); hpLabel->adjustSize(); updatedText.str(""); - updatedText << player_info->mp << "/" << player_info->maxMp; + updatedText << player_info->mp; mpLabel->setCaption(updatedText.str()); mpLabel->adjustSize(); hpLabel->setPosition(hpBar->getX() + int((hpBar->getWidth() / 2) - (hpLabel->getWidth() / 2)), -- cgit v1.2.3-70-g09d2