From f20afb38a8c3ee61742831de9c3ca3e56569f8e1 Mon Sep 17 00:00:00 2001
From: Jonathan Wilkes <jon.w.wilkes@gmail.com>
Date: Tue, 12 May 2020 21:57:16 -0400
Subject: [PATCH] don't apply legacy positions unless the "-legacy" flag is
 used

---
 pd/src/g_all_guis.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pd/src/g_all_guis.c b/pd/src/g_all_guis.c
index f5c4e9dcd..2ce6de3d6 100644
--- a/pd/src/g_all_guis.c
+++ b/pd/src/g_all_guis.c
@@ -1018,8 +1018,8 @@ void iemgui_label_draw_move(t_iemgui *x)
     gui_vmess("gui_iemgui_label_coords", "xxii",
         canvas,
         x,
-        x->x_ldx + x->legacy_x,
-        x->x_ldy + x->legacy_y);
+        x->x_ldx + (sys_legacy ? x->legacy_x : 0),
+        x->x_ldy + (sys_legacy ? x->legacy_y : 0));
 }
 
 void iemgui_label_draw_config(t_iemgui *x)
-- 
GitLab