From 2c7d0b3518d72a7ab0726b72f7d2137e5944f049 Mon Sep 17 00:00:00 2001 From: Björn Steinbrink Date: Thu, 25 Aug 2005 18:06:19 +0000 Subject: Made our drawImage() method respect the clip area from the guichan graphics part. Removed some (now) obsolete code. Fixed compilation errors. --- src/gui/minimap.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/gui/minimap.cpp') 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)->drawImage( - mMapImage, x + getPadding(), y + getTitleBarHeight()); + mMapImage, getPadding(), getTitleBarHeight()); } std::list::iterator bi; -- cgit v1.2.3-70-g09d2