X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Ftools.c;h=d72c99d09329fd1081e3ce962909089b4ca2fe85;hp=053409c67ae6c09e139aa62d22617149e29cdc12;hb=a56f43284d320b60cbeb1ebd097ec6d21d4f4ff1;hpb=3be7c7dc2af1580d9ba24118ed36fb001d09ebc1 diff --git a/src/tools.c b/src/tools.c index 053409c6..d72c99d0 100644 --- a/src/tools.c +++ b/src/tools.c @@ -291,15 +291,16 @@ void RedrawPlayfield() static void DrawMaskedBorderExt_Rect(int x, int y, int width, int height, int draw_target) { - Bitmap *bitmap = getGlobalBorderBitmapFromStatus(global.border_status); + Bitmap *src_bitmap = getGlobalBorderBitmapFromStatus(global.border_status); + Bitmap *dst_bitmap = gfx.masked_border_bitmap_ptr; if (x == -1 && y == -1) return; if (draw_target == DRAW_BORDER_TO_SCREEN) - BlitToScreenMasked(bitmap, x, y, width, height, x, y); + BlitToScreenMasked(src_bitmap, x, y, width, height, x, y); else - BlitBitmapMasked(bitmap, backbuffer, x, y, width, height, x, y); + BlitBitmapMasked(src_bitmap, dst_bitmap, x, y, width, height, x, y); } static void DrawMaskedBorderExt_FIELD(int draw_target) @@ -381,7 +382,7 @@ void DrawMaskedBorder(int redraw_mask) DrawMaskedBorderExt(redraw_mask, DRAW_BORDER_TO_BACKBUFFER); } -void DrawMaskedBorderToScreen(int draw_target) +void DrawMaskedBorderToTarget(int draw_target) { DrawMaskedBorderExt(REDRAW_ALL, draw_target); }