fixed bug with drawing masked borders for off-screen viewports
authorHolger Schemel <info@artsoft.org>
Sat, 19 Mar 2016 21:18:18 +0000 (22:18 +0100)
committerHolger Schemel <info@artsoft.org>
Sat, 19 Mar 2016 21:18:18 +0000 (22:18 +0100)
src/tools.c

index f1aa666e8004c9332f2a79579c903c7c59957a4d..2a36ee412fb7e5ceb7f43f8fb096da4f6b3b10a9 100644 (file)
@@ -293,6 +293,9 @@ static void DrawMaskedBorderExt_Rect(int x, int y, int width, int height,
 {
   Bitmap *bitmap = getGlobalBorderBitmapFromGameStatus();
 
+  if (x == -1 && y == -1)
+    return;
+
   if (blit_to_screen)
     BlitToScreenMasked(bitmap, x, y, width, height, x, y);
   else