X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fscreens.c;h=98c7b68ace401ba8fd957d093e854df88b90b466;hb=e5804efb99033c96d71c37ce89f60e1ee23b7004;hp=d027efa27227ff95e00338bc6a1c8d457683932f;hpb=84115b315d6a5954ca0add6b21b9c4f08631211f;p=rocksndiamonds.git diff --git a/src/screens.c b/src/screens.c index d027efa2..98c7b68a 100644 --- a/src/screens.c +++ b/src/screens.c @@ -9745,6 +9745,11 @@ 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)) + continue; + event_mask = menubutton_info[i].event_mask; x = (is_touch_button ? pos->x : mSX + GDI_ACTIVE_POS(pos->x));