From 8d0beabe68b9ba841569d00befbe68571c09c140 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Tue, 31 Jan 2023 20:06:32 +0100 Subject: [PATCH] added support for ".draw_masked" when using title screen with background --- src/screens.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.34.1