added using setup option for displaying overlay touch buttons
[rocksndiamonds.git] / src / tools.c
index bb6668d132352245bea54c643be154ea6c1b6ed3..79cf0885135681310694fdc4dc562fd40dfa5cf0 100644 (file)
@@ -5857,6 +5857,10 @@ void CreateToolButtons(void)
     int y = 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 (global.use_envelope_request && !is_touch_button)
     {
       setRequestPosition(&base_x, &base_y, TRUE);