added using setup option for displaying overlay touch buttons
[rocksndiamonds.git] / src / game.c
index 68fb40c6e12dc3c2c27433c0955fb5ea7a4e086a..abf350ce93311d668bc344cc1301affb90fa0a1e 100644 (file)
@@ -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)