summaryrefslogtreecommitdiff
path: root/src/gui/minimap.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/minimap.cpp
parent529ba0581833b05921d8dc3336b02a3c6abd511a (diff)
downloadmana-2c7d0b3518d72a7ab0726b72f7d2137e5944f049.tar.gz
mana-2c7d0b3518d72a7ab0726b72f7d2137e5944f049.tar.bz2
mana-2c7d0b3518d72a7ab0726b72f7d2137e5944f049.tar.xz
mana-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/minimap.cpp')
-rw-r--r--src/gui/minimap.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gui/minimap.cpp b/src/gui/minimap.cpp
index 7b2367c0..6e8d8a04 100644
--- a/src/gui/minimap.cpp
+++ b/src/gui/minimap.cpp
@@ -73,13 +73,10 @@ void Minimap::draw(gcn::Graphics *graphics)
{
Window::draw(graphics);
- int x, y;
- getAbsolutePosition(x, y);
-
if (mMapImage != NULL)
{
dynamic_cast<Graphics*>(graphics)->drawImage(
- mMapImage, x + getPadding(), y + getTitleBarHeight());
+ mMapImage, getPadding(), getTitleBarHeight());
}
std::list<Being*>::iterator bi;