summaryrefslogtreecommitdiff
path: root/src/gui/itemcontainer.cpp
diff options
context:
space:
mode:
authorBertram <bertram@cegetel.net>2009-09-23 00:31:57 +0200
committerBertram <bertram@cegetel.net>2009-09-23 00:31:57 +0200
commite9ca82e734da4e8e82854c8791a3f7e62d083a1d (patch)
treed6c244c9ae199abe1b1ff078e08bb2c4ef6da3cd /src/gui/itemcontainer.cpp
parent5aad04d3333f9a75b8eeea28802422d7c310304d (diff)
downloadmana-e9ca82e734da4e8e82854c8791a3f7e62d083a1d.tar.gz
mana-e9ca82e734da4e8e82854c8791a3f7e62d083a1d.tar.bz2
mana-e9ca82e734da4e8e82854c8791a3f7e62d083a1d.tar.xz
mana-e9ca82e734da4e8e82854c8791a3f7e62d083a1d.zip
Fixed some glitches in Equipment and Inventory window, and made the code more logical...
Now, the setAlpha() function is called with less changing numbers which can help increasing FPS a bit...
Diffstat (limited to 'src/gui/itemcontainer.cpp')
-rw-r--r--src/gui/itemcontainer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/itemcontainer.cpp b/src/gui/itemcontainer.cpp
index d8ae6e20..c8d3ca7d 100644
--- a/src/gui/itemcontainer.cpp
+++ b/src/gui/itemcontainer.cpp
@@ -126,10 +126,11 @@ void ItemContainer::draw(gcn::Graphics *graphics)
itemY = mDragPosY - (BOX_HEIGHT / 2);
}
else {
- // Draw selected image.
+ // Draw selection border image.
g->drawImage(mSelImg, itemX, itemY);
}
}
+ image->setAlpha(1.0f); // ensure the image if fully drawn...
g->drawImage(image, itemX, itemY);
}
// Draw item caption