diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-08-25 18:06:19 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-08-25 18:06:19 +0000 |
commit | 2c7d0b3518d72a7ab0726b72f7d2137e5944f049 (patch) | |
tree | 7080b1e32df54b8b44875df3609e94888939eb89 /src/gui/itemcontainer.cpp | |
parent | 529ba0581833b05921d8dc3336b02a3c6abd511a (diff) | |
download | mana-client-2c7d0b3518d72a7ab0726b72f7d2137e5944f049.tar.gz mana-client-2c7d0b3518d72a7ab0726b72f7d2137e5944f049.tar.bz2 mana-client-2c7d0b3518d72a7ab0726b72f7d2137e5944f049.tar.xz mana-client-2c7d0b3518d72a7ab0726b72f7d2137e5944f049.zip |
Made our drawImage() method respect the clip area from the guichan graphics part. Removed some (now) obsolete code. Fixed compilation errors.
Diffstat (limited to 'src/gui/itemcontainer.cpp')
-rw-r--r-- | src/gui/itemcontainer.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/itemcontainer.cpp b/src/gui/itemcontainer.cpp index e2eb6085..7c7baddc 100644 --- a/src/gui/itemcontainer.cpp +++ b/src/gui/itemcontainer.cpp @@ -78,8 +78,6 @@ void ItemContainer::draw(gcn::Graphics* graphics) int gridHeight = itemset->spriteset[0]->getHeight() + 10; int w = getWidth(); int columns = w / gridWidth; - int x, y; - getAbsolutePosition(x, y); // Have at least 1 column if (columns < 1) @@ -113,7 +111,7 @@ void ItemContainer::draw(gcn::Graphics* graphics) if (selectedItem == item) { dynamic_cast<Graphics*>(graphics)->drawImage( - selImg, x + itemX, y + itemY); + selImg, itemX, itemY); } // Draw item icon @@ -121,7 +119,7 @@ void ItemContainer::draw(gcn::Graphics* graphics) if ((idx = item->getInfo()->getImage()) > 0) { dynamic_cast<Graphics*>(graphics)->drawImage( - itemset->spriteset[idx - 1], x + itemX, y + itemY); + itemset->spriteset[idx - 1], itemX, itemY); } // Draw item caption |