summaryrefslogtreecommitdiff
path: root/src/gui/windows/equipmentwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-14 16:59:21 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-14 16:59:21 +0300
commitd9a77eb8ac5d507665cbf8b20f5d8187148ebfd1 (patch)
treedb2f8a25d466ce6aa5ca1747216156f7869a06d1 /src/gui/windows/equipmentwindow.cpp
parent2851324a6847efa7ea6f556941b369e9e304dc23 (diff)
downloadmanaverse-d9a77eb8ac5d507665cbf8b20f5d8187148ebfd1.tar.gz
manaverse-d9a77eb8ac5d507665cbf8b20f5d8187148ebfd1.tar.bz2
manaverse-d9a77eb8ac5d507665cbf8b20f5d8187148ebfd1.tar.xz
manaverse-d9a77eb8ac5d507665cbf8b20f5d8187148ebfd1.zip
Improve a bit separate images drawing.
Diffstat (limited to 'src/gui/windows/equipmentwindow.cpp')
-rw-r--r--src/gui/windows/equipmentwindow.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/gui/windows/equipmentwindow.cpp b/src/gui/windows/equipmentwindow.cpp
index 9f1ed11bf..c5df1b528 100644
--- a/src/gui/windows/equipmentwindow.cpp
+++ b/src/gui/windows/equipmentwindow.cpp
@@ -201,9 +201,13 @@ void EquipmentWindow::draw(gcn::Graphics *graphics)
if (!box)
continue;
if (i == mSelected)
- g->drawImage(mSlotHighlightedBackground, box->x, box->y);
+ {
+ DRAW_IMAGE(g, mSlotHighlightedBackground, box->x, box->y);
+ }
else
- g->drawImage(mSlotBackground, box->x, box->y);
+ {
+ DRAW_IMAGE(g, mSlotBackground, box->x, box->y);
+ }
}
}
@@ -229,7 +233,7 @@ void EquipmentWindow::draw(gcn::Graphics *graphics)
{
image->setAlpha(1.0F); // Ensure the image is drawn
// with maximum opacity
- g->drawImage(image, box->x + mItemPadding,
+ DRAW_IMAGE(g, image, box->x + mItemPadding,
box->y + mItemPadding);
if (i == EQUIP_PROJECTILE_SLOT)
{
@@ -243,7 +247,7 @@ void EquipmentWindow::draw(gcn::Graphics *graphics)
}
else if (box->image)
{
- g->drawImage(box->image, box->x + mItemPadding,
+ DRAW_IMAGE(g, box->image, box->x + mItemPadding,
box->y + mItemPadding);
}
}