summaryrefslogtreecommitdiff
path: root/src/gui/equipmentwindow.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-25 18:06:19 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-25 18:06:19 +0000
commit2c7d0b3518d72a7ab0726b72f7d2137e5944f049 (patch)
tree7080b1e32df54b8b44875df3609e94888939eb89 /src/gui/equipmentwindow.cpp
parent529ba0581833b05921d8dc3336b02a3c6abd511a (diff)
downloadmana-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/equipmentwindow.cpp')
-rw-r--r--src/gui/equipmentwindow.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/gui/equipmentwindow.cpp b/src/gui/equipmentwindow.cpp
index 0aeb58e4..5ed0c189 100644
--- a/src/gui/equipmentwindow.cpp
+++ b/src/gui/equipmentwindow.cpp
@@ -54,9 +54,6 @@ EquipmentWindow::~EquipmentWindow()
void EquipmentWindow::draw(gcn::Graphics *graphics)
{
- int x, y;
- getAbsolutePosition(x, y);
-
// Draw window graphics
Window::draw(graphics);
@@ -75,7 +72,7 @@ void EquipmentWindow::draw(gcn::Graphics *graphics)
image = itemset->spriteset[item->getInfo()->getImage() - 1];
dynamic_cast<Graphics*>(graphics)->drawImage(
- image, x + 36 * (i % 4) + 10, y + 36 * (i / 4) + 25);
+ image, 36 * (i % 4) + 10, 36 * (i / 4) + 25);
}
graphics->setColor(gcn::Color(0, 0, 0));
@@ -87,8 +84,7 @@ void EquipmentWindow::draw(gcn::Graphics *graphics)
image = itemset->spriteset[item->getInfo()->getImage() - 1];
- dynamic_cast<Graphics*>(graphics)->drawImage(
- image, x + 160, y + 25);
+ dynamic_cast<Graphics*>(graphics)->drawImage(image, 160, 25);
std::stringstream n;
n << item->getQuantity();
graphics->drawText(n.str(), 170, 62,