X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fscreens.c;h=ae7b24b95238177bf74727d845a75c9dda1cfe7f;hb=71d2bc144c7a32421cd718820c0c961aebbc3e46;hp=5f1a634a25a6f93aab112e9f823c530f4a0f6942;hpb=a475a2fcc3a08019a7661066e324e2bc8508851d;p=rocksndiamonds.git 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;