From 1ff5bfa5eb446c0b0cc7191d22dec6665dd81da4 Mon Sep 17 00:00:00 2001 From: Sojourner Truth <jon.w.wilkes@gmail.com> Date: Mon, 1 Aug 2016 18:03:35 -0400 Subject: [PATCH] fix offset for the circle in [bng] --- pd/src/g_bang.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pd/src/g_bang.c b/pd/src/g_bang.c index 38bd2bb4d..15306bd7d 100644 --- a/pd/src/g_bang.c +++ b/pd/src/g_bang.c @@ -42,8 +42,8 @@ void bng_draw_new(t_bng *x, t_glist *glist) int y1=text_ypix(&x->x_gui.x_obj, glist); iemgui_base_draw_new(&x->x_gui); t_float cr = (x->x_gui.x_w-2)/2.0; - t_float cx = x1+cr+1.5; - t_float cy = y1+cr+1.5; + t_float cx = x1+cr+1; + t_float cy = y1+cr+1; /* The circle isn't quite centered in the nw.js port. Let's use the old interface to see if there's anything we're doing wrong. Then once we get the circle placement right we can remove the old code here... */ @@ -69,8 +69,8 @@ void bng_draw_move(t_bng *x, t_glist *glist) iemgui_base_draw_move(&x->x_gui); t_float cr = (x->x_gui.x_w-2)/2.0; - t_float cx = x1+cr+1.5; - t_float cy = y1+cr+1.5; + t_float cx = x1+cr+1; + t_float cy = y1+cr+1; gui_vmess("gui_bng_configure", "xxxfff", canvas, x, -- GitLab