summaryrefslogtreecommitdiff
path: root/src/gui/equipmentwindow.cpp
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/equipmentwindow.cpp
parentefba340a17ae21ca0aaa1cdba8e24265882f1eba (diff)
downloadmanaverse-4f390339f8107c376a10151a2cae889c0ec01089.tar.gz
manaverse-4f390339f8107c376a10151a2cae889c0ec01089.tar.bz2
manaverse-4f390339f8107c376a10151a2cae889c0ec01089.tar.xz
manaverse-4f390339f8107c376a10151a2cae889c0ec01089.zip
Fix window color in equipment window.
Diffstat (limited to 'src/gui/equipmentwindow.cpp')
-rw-r--r--src/gui/equipmentwindow.cpp4
1 files changed, 2 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);