From: Holger Schemel Date: Sat, 19 Mar 2016 21:18:18 +0000 (+0100) Subject: fixed bug with drawing masked borders for off-screen viewports X-Git-Tag: 4.0.0.0-rc1~43 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=aafc5189b2b9550dd03dfcc7213e28bec2bca63b;p=rocksndiamonds.git fixed bug with drawing masked borders for off-screen viewports --- diff --git a/src/tools.c b/src/tools.c index f1aa666e..2a36ee41 100644 --- a/src/tools.c +++ b/src/tools.c @@ -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