summaryrefslogtreecommitdiff
path: root/src/gui/equipmentwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-04 17:02:05 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-04 17:02:05 +0300
commit6ed69c8769cd6c8c79c77fc8116059b42f3653e7 (patch)
tree48ede1453da63c58ba02ccc35ab06c3f7a61ddca /src/gui/equipmentwindow.cpp
parent002656b278ab1c2e09bca8f6ffd2d5c42d57b09c (diff)
downloadmv-6ed69c8769cd6c8c79c77fc8116059b42f3653e7.tar.gz
mv-6ed69c8769cd6c8c79c77fc8116059b42f3653e7.tar.bz2
mv-6ed69c8769cd6c8c79c77fc8116059b42f3653e7.tar.xz
mv-6ed69c8769cd6c8c79c77fc8116059b42f3653e7.zip
add function to graphics class to set normal and outline colors at once.
Diffstat (limited to 'src/gui/equipmentwindow.cpp')
-rw-r--r--src/gui/equipmentwindow.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/equipmentwindow.cpp b/src/gui/equipmentwindow.cpp
index db082e3be..a18ec0aa4 100644
--- a/src/gui/equipmentwindow.cpp
+++ b/src/gui/equipmentwindow.cpp
@@ -224,8 +224,7 @@ void EquipmentWindow::draw(gcn::Graphics *graphics)
box->y + mItemPadding);
if (i == EQUIP_PROJECTILE_SLOT)
{
- g->setColor(mLabelsColor);
- g->setColor2(mLabelsColor2);
+ g->setColorAll(mLabelsColor, mLabelsColor2);
const std::string str = toString(item->getQuantity());
font->drawString(g, str,
box->x + (mBoxSize - font->getWidth(str)) / 2,