From 472e5e9019c2af26bd5f3dfd2651b1b47aadf7bb Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Fri, 22 Mar 2024 12:58:53 +0100 Subject: [PATCH 1/1] fixed graphical bugs when using background graphics on menu screens This bug occurs when using background graphics on menu screens in combination with a bottom screen tape panel (without using the normal request door, but using envelope style door requests instead). This caused problems with black boxes in the bottom right corner on all sub-screens (like info, setup or scores screens). This bugfix now also allows non-black backgrounds for bottom screen tape panels (by defining the main screen to use the whole window, including the area reserved for the bottom screen tape panel, which uses the main screen's background graphics during sliding in or out). --- src/tools.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools.c b/src/tools.c index 2fdcd0b8..cc08a669 100644 --- a/src/tools.c +++ b/src/tools.c @@ -5580,8 +5580,8 @@ unsigned int MoveDoor(unsigned int door_state) if (!door_panel_drawn[door_index]) { - ClearRectangle(drawto, door_rect->x, door_rect->y, - door_rect->width, door_rect->height); + ClearRectangleOnBackground(drawto, door_rect->x, door_rect->y, + door_rect->width, door_rect->height); door_panel_drawn[door_index] = TRUE; } -- 2.34.1