summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-02 17:45:47 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-02 17:45:47 +0300
commit4f390339f8107c376a10151a2cae889c0ec01089 (patch)
tree13af733406da1beb06ffcd20615ce22d406ed541 /src/gui
parentefba340a17ae21ca0aaa1cdba8e24265882f1eba (diff)
downloadmv-4f390339f8107c376a10151a2cae889c0ec01089.tar.gz
mv-4f390339f8107c376a10151a2cae889c0ec01089.tar.bz2
mv-4f390339f8107c376a10151a2cae889c0ec01089.tar.xz
mv-4f390339f8107c376a10151a2cae889c0ec01089.zip
Fix window color in equipment window.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/equipmentwindow.cpp4
-rw-r--r--src/gui/equipmentwindow.h1
2 files changed, 3 insertions, 2 deletions
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<EquipmentBox*> mBoxes;
gcn::Color mHighlightColor;
gcn::Color mBorderColor;
+ gcn::Color mLabelsColor;
};
extern EquipmentWindow *equipmentWindow;