summaryrefslogtreecommitdiff
path: root/src/gui/equipmentwindow.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/equipmentwindow.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/equipmentwindow.cpp')
-rw-r--r--src/gui/equipmentwindow.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/equipmentwindow.cpp b/src/gui/equipmentwindow.cpp
index 2fd7ccad..9944fa39 100644
--- a/src/gui/equipmentwindow.cpp
+++ b/src/gui/equipmentwindow.cpp
@@ -136,6 +136,7 @@ void EquipmentWindow::draw(gcn::Graphics *graphics)
{
// Draw Item.
Image *image = item->getImage();
+ image->setAlpha(1.0f); // Ensure the image is drawn with maximum opacity
g->drawImage(image,
mEquipBox[i].posX + 2,
mEquipBox[i].posY + 2);