added using setup option for displaying overlay touch buttons
[rocksndiamonds.git] / src / screens.c
index d027efa27227ff95e00338bc6a1c8d457683932f..b45e99119d3e7c5e163fd23cfff625fd5807db70 100644 (file)
@@ -9745,6 +9745,10 @@ static void CreateScreenMenubuttons(void)
     int type = GD_TYPE_NORMAL_BUTTON;
     boolean checked = FALSE;
 
+    // do not use touch buttons if overlay touch buttons are disabled
+    if (is_touch_button && !setup.touch.overlay_buttons)
+      continue;
+
     event_mask = menubutton_info[i].event_mask;
 
     x = (is_touch_button ? pos->x : mSX + GDI_ACTIVE_POS(pos->x));