summaryrefslogtreecommitdiff
path: root/src/gui/minimap.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-04-03 19:06:24 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-04-03 19:06:24 +0000
commitbb2da24d75d3ba1f029961cd3b15a29ac330686b (patch)
tree98db2a239a921543bf11be6ba8659854ed54e051 /src/gui/minimap.cpp
parent7aee9a4d781c49313dab50be383843e08147fdac (diff)
downloadmana-bb2da24d75d3ba1f029961cd3b15a29ac330686b.tar.gz
mana-bb2da24d75d3ba1f029961cd3b15a29ac330686b.tar.bz2
mana-bb2da24d75d3ba1f029961cd3b15a29ac330686b.tar.xz
mana-bb2da24d75d3ba1f029961cd3b15a29ac330686b.zip
New version of 3-1 map.
Diffstat (limited to 'src/gui/minimap.cpp')
-rw-r--r--src/gui/minimap.cpp18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/gui/minimap.cpp b/src/gui/minimap.cpp
index df9d2f42..c43f5218 100644
--- a/src/gui/minimap.cpp
+++ b/src/gui/minimap.cpp
@@ -63,22 +63,26 @@ void Minimap::draw(gcn::Graphics *graphics)
sourceRect.x = sourceRect.y = 0;
sourceRect.w = getWidth();
sourceRect.h = getHeight();
- if ( mapBackground )
+
+ if (mapBackground)
{
SDL_FillRect(mapBackground, &sourceRect, mapColor);
SDL_SetAlpha(mapBackground, SDL_SRCALPHA, 120);
}
-
}
- SDL_Rect screenRect;
- screenRect.w = getWidth();
- screenRect.h = getHeight();
- screenRect.x = x;
- screenRect.y = y;
if (mapBackground)
+ {
+ SDL_Rect screenRect;
+ screenRect.w = getWidth();
+ screenRect.h = getHeight();
+ screenRect.x = x;
+ screenRect.y = y;
+
SDL_BlitSurface(mapBackground, NULL, screen, &screenRect);
+ }
+ graphics->setColor(gcn::Color(0, 0, 0));
graphics->drawRectangle(gcn::Rectangle(0, 0, getWidth(), getHeight()));
graphics->setColor(gcn::Color(209, 52, 61));
graphics->fillRectangle(gcn::Rectangle(player_node->x / 2,