diff options
author | Bertram <bertram@cegetel.net> | 2009-09-23 00:31:57 +0200 |
---|---|---|
committer | Bertram <bertram@cegetel.net> | 2009-09-23 00:31:57 +0200 |
commit | e9ca82e734da4e8e82854c8791a3f7e62d083a1d (patch) | |
tree | d6c244c9ae199abe1b1ff078e08bb2c4ef6da3cd /src/gui/equipmentwindow.cpp | |
parent | 5aad04d3333f9a75b8eeea28802422d7c310304d (diff) | |
download | mana-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.cpp | 1 |
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); |