From c8b33c083ea070deda4e3047c3b2875b7bf6d003 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20G=C3=B6belbecker?= Date: Mon, 28 Apr 2008 17:07:38 +0000 Subject: [PATCH] Fix blending of base and overlay terrains in the minimap. --- src/minimap.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/minimap.cpp b/src/minimap.cpp index ab55fa8caa2..d58a9d0af50 100644 --- a/src/minimap.cpp +++ b/src/minimap.cpp @@ -98,9 +98,9 @@ surface getMinimap(int w, int h, const gamemap& map, const viewpoint* vw) r.x = 0; r.y = 0; SDL_BlitSurface(tile, NULL, combined, &r); - r.x = (tile->w - overlay->w)/2; - r.y = (tile->h - overlay->h)/2; - SDL_BlitSurface(overlay, NULL, combined, &r); + r.x = maximum(0, (tile->w - overlay->w)/2); + r.y = maximum(0, (tile->h - overlay->h)/2); + blit_surface(overlay, NULL, combined, &r); tile = combined; }