From 71d2bc144c7a32421cd718820c0c961aebbc3e46 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Thu, 31 Mar 2022 15:23:07 +0200 Subject: [PATCH] changed handling graphics for pressed screen menu buttons --- src/screens.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/screens.c b/src/screens.c index 5f1a634a..ae7b24b9 100644 --- a/src/screens.c +++ b/src/screens.c @@ -9981,6 +9981,8 @@ static void CreateScreenMenubuttons(void) boolean is_touch_button = menubutton_info[i].is_touch_button; boolean is_check_button = menubutton_info[i].check_value != NULL; boolean is_score_button = (screen_mask & SCREEN_MASK_SCORES_INFO); + boolean has_gfx_pressed = (menubutton_info[i].gfx_pressed == + menubutton_info[i].gfx_unpressed); Bitmap *gd_bitmap_unpressed, *gd_bitmap_pressed; int gfx_unpressed, gfx_pressed; int x, y, width, height; @@ -10011,7 +10013,7 @@ static void CreateScreenMenubuttons(void) gd_x2a = gd_x2; gd_y2a = gd_y2; - if (is_touch_button) + if (has_gfx_pressed) { gd_x2 += graphic_info[gfx_pressed].pressed_xoffset; gd_y2 += graphic_info[gfx_pressed].pressed_yoffset; -- 2.34.1