From: Holger Schemel Date: Tue, 22 Mar 2016 09:29:38 +0000 (+0100) Subject: improved robustness of function for drawing global borders X-Git-Tag: 4.0.0.0-rc1~31 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=31379d28ae87b6aeef89cffc4fc0f11b783614bc;p=rocksndiamonds.git improved robustness of function for drawing global borders --- diff --git a/src/tools.c b/src/tools.c index a212e6ad..9d97bc9e 100644 --- a/src/tools.c +++ b/src/tools.c @@ -384,7 +384,8 @@ void DrawMaskedBorder(int redraw_mask) void DrawMaskedBorderToTarget(int draw_target) { - if (draw_target == DRAW_BORDER_TO_SCREEN) + if (draw_target == DRAW_BORDER_TO_BACKBUFFER || + draw_target == DRAW_BORDER_TO_SCREEN) { DrawMaskedBorderExt(REDRAW_ALL, draw_target); } @@ -397,7 +398,7 @@ void DrawMaskedBorderToTarget(int draw_target) global.border_status = gfx.fade_border_source_status; gfx.masked_border_bitmap_ptr = gfx.fade_bitmap_source; } - else + else if (draw_target == DRAW_BORDER_TO_FADE_TARGET) { global.border_status = gfx.fade_border_target_status; gfx.masked_border_bitmap_ptr = gfx.fade_bitmap_target;