X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fgame.c;fp=src%2Fgame.c;h=abf350ce93311d668bc344cc1301affb90fa0a1e;hp=68fb40c6e12dc3c2c27433c0955fb5ea7a4e086a;hb=1d7ec87196d24515b3d6e9400c689d9cd48c49f5;hpb=fba4d73f859e45839b0e32da0ad389e9145311a7 diff --git a/src/game.c b/src/game.c index 68fb40c6..abf350ce 100644 --- a/src/game.c +++ b/src/game.c @@ -16300,9 +16300,8 @@ void CreateGameButtons(void) int y = (is_touch_button ? pos->y : GDI_ACTIVE_POS(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 (gfx->bitmap == NULL)