X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Ftools.c;h=79cf0885135681310694fdc4dc562fd40dfa5cf0;hp=912b18360309377682654e9b9d831604eaaf0005;hb=1d7ec87196d24515b3d6e9400c689d9cd48c49f5;hpb=fba4d73f859e45839b0e32da0ad389e9145311a7 diff --git a/src/tools.c b/src/tools.c index 912b1836..79cf0885 100644 --- a/src/tools.c +++ b/src/tools.c @@ -5857,9 +5857,8 @@ void CreateToolButtons(void) int y = pos->y; int id = i; - // 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; if (global.use_envelope_request && !is_touch_button)