X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fscreens.c;h=b45e99119d3e7c5e163fd23cfff625fd5807db70;hp=98c7b68ace401ba8fd957d093e854df88b90b466;hb=1d7ec87196d24515b3d6e9400c689d9cd48c49f5;hpb=fba4d73f859e45839b0e32da0ad389e9145311a7 diff --git a/src/screens.c b/src/screens.c index 98c7b68a..b45e9911 100644 --- a/src/screens.c +++ b/src/screens.c @@ -9745,9 +9745,8 @@ static void CreateScreenMenubuttons(void) int type = GD_TYPE_NORMAL_BUTTON; boolean checked = FALSE; - // do not use touch buttons if touch controls are disabled - if (is_touch_button && - strEqual(setup.touch.control_type, TOUCH_CONTROL_OFF)) + // do not use touch buttons if overlay touch buttons are disabled + if (is_touch_button && !setup.touch.overlay_buttons) continue; event_mask = menubutton_info[i].event_mask;