From 4f390339f8107c376a10151a2cae889c0ec01089 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 2 Sep 2012 17:45:47 +0300 Subject: Fix window color in equipment window. --- src/gui/equipmentwindow.cpp | 4 ++-- src/gui/equipmentwindow.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/gui/equipmentwindow.cpp b/src/gui/equipmentwindow.cpp index 147dde9ff..e6cb2b9a8 100644 --- a/src/gui/equipmentwindow.cpp +++ b/src/gui/equipmentwindow.cpp @@ -103,7 +103,7 @@ EquipmentWindow::EquipmentWindow(Equipment *const equipment, mHighlightColor = Theme::getThemeColor(Theme::HIGHLIGHT); mBorderColor = Theme::getThemeColor(Theme::BORDER); - setForegroundColor(Theme::getThemeColor(Theme::LABEL)); + mLabelsColor = Theme::getThemeColor(Theme::LABEL); } EquipmentWindow::~EquipmentWindow() @@ -174,7 +174,7 @@ void EquipmentWindow::draw(gcn::Graphics *graphics) g->drawImage(image, box->x + 2, box->y + 2); if (i == EQUIP_PROJECTILE_SLOT) { - g->setColor(getForegroundColor()); + g->setColor(mLabelsColor); graphics->drawText(toString(item->getQuantity()), box->x + (BOX_WIDTH / 2), box->y - fontHeight, gcn::Graphics::CENTER); diff --git a/src/gui/equipmentwindow.h b/src/gui/equipmentwindow.h index ad90bca12..3d865165d 100644 --- a/src/gui/equipmentwindow.h +++ b/src/gui/equipmentwindow.h @@ -135,6 +135,7 @@ class EquipmentWindow : public Window, public gcn::ActionListener std::vector mBoxes; gcn::Color mHighlightColor; gcn::Color mBorderColor; + gcn::Color mLabelsColor; }; extern EquipmentWindow *equipmentWindow; -- cgit v1.2.3-70-g09d2