From: Holger Schemel Date: Tue, 31 Jan 2023 19:06:32 +0000 (+0100) Subject: added support for ".draw_masked" when using title screen with background X-Git-Tag: 4.3.5.0~23 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=8d0beabe68b9ba841569d00befbe68571c09c140;p=rocksndiamonds.git added support for ".draw_masked" when using title screen with background --- diff --git a/src/screens.c b/src/screens.c index 1233b803..52db9159 100644 --- a/src/screens.c +++ b/src/screens.c @@ -1598,6 +1598,7 @@ static void DrawTitleScreenImage(int nr, boolean initial) { int graphic = getTitleScreenGraphic(nr, initial); Bitmap *bitmap = graphic_info[graphic].bitmap; + int draw_masked = graphic_info[graphic].draw_masked; int width = graphic_info[graphic].width; int height = graphic_info[graphic].height; int src_x = graphic_info[graphic].src_x; @@ -1630,7 +1631,7 @@ static void DrawTitleScreenImage(int nr, boolean initial) ClearRectangleOnBackground(drawto, 0, 0, WIN_XSIZE, WIN_YSIZE); - if (DrawingOnBackground(dst_x, dst_y)) + if (DrawingOnBackground(dst_x, dst_y) && draw_masked) BlitBitmapMasked(bitmap, drawto, src_x, src_y, width, height, dst_x, dst_y); else BlitBitmap(bitmap, drawto, src_x, src_y, width, height, dst_x, dst_y);