From: Holger Schemel Date: Fri, 22 Mar 2024 11:58:53 +0000 (+0100) Subject: fixed graphical bugs when using background graphics on menu screens X-Git-Tag: 4.4.0.0-test-1~164 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=472e5e9019c2af26bd5f3dfd2651b1b47aadf7bb;p=rocksndiamonds.git 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). --- 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; }