diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-12-14 16:59:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-12-14 16:59:21 +0300 |
commit | d9a77eb8ac5d507665cbf8b20f5d8187148ebfd1 (patch) | |
tree | db2f8a25d466ce6aa5ca1747216156f7869a06d1 /src/gui/widgets/itemcontainer.cpp | |
parent | 2851324a6847efa7ea6f556941b369e9e304dc23 (diff) | |
download | manaverse-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/widgets/itemcontainer.cpp')
-rw-r--r-- | src/gui/widgets/itemcontainer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/widgets/itemcontainer.cpp b/src/gui/widgets/itemcontainer.cpp index 8754210f8..9064ca8b5 100644 --- a/src/gui/widgets/itemcontainer.cpp +++ b/src/gui/widgets/itemcontainer.cpp @@ -280,16 +280,16 @@ void ItemContainer::draw(gcn::Graphics *graphics) if (mShowMatrix[itemIndex] == mSelectedIndex) { if (mSelImg) - g->drawImage(mSelImg, itemX, itemY); + DRAW_IMAGE(g, mSelImg, itemX, itemY); } image->setAlpha(1.0F); // ensure the image if fully drawn... - g->drawImage(image, itemX + mPaddingItemX, + DRAW_IMAGE(g, image, itemX + mPaddingItemX, itemY + mPaddingItemY); if (mProtectedImg && PlayerInfo::isItemProtected( item->getId())) { - g->drawImage(mProtectedImg, itemX + mPaddingItemX, - itemY + mPaddingItemY); + DRAW_IMAGE(g, mProtectedImg, + itemX + mPaddingItemX, itemY + mPaddingItemY); } } } |