X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fgame.c;fp=src%2Fgame.c;h=68fb40c6e12dc3c2c27433c0955fb5ea7a4e086a;hp=3985ce1b47564ae57618bd167260cb80bc41a71b;hb=e5804efb99033c96d71c37ce89f60e1ee23b7004;hpb=1d00f4f75136458f4ac891dd89dceed9b50c57a8 diff --git a/src/game.c b/src/game.c index 3985ce1b..68fb40c6 100644 --- a/src/game.c +++ b/src/game.c @@ -16300,6 +16300,11 @@ 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)) + continue; + if (gfx->bitmap == NULL) { game_gadget[id] = NULL;