added using setup option for displaying overlay touch buttons
[rocksndiamonds.git] / src / game.c
index 3985ce1b47564ae57618bd167260cb80bc41a71b..abf350ce93311d668bc344cc1301affb90fa0a1e 100644 (file)
@@ -16300,6 +16300,10 @@ void CreateGameButtons(void)
     int y = (is_touch_button ? pos->y : GDI_ACTIVE_POS(pos->y));
     int id = i;
 
+    // do not use touch buttons if overlay touch buttons are disabled
+    if (is_touch_button && !setup.touch.overlay_buttons)
+      continue;
+
     if (gfx->bitmap == NULL)
     {
       game_gadget[id] = NULL;