diff --git a/pd/src/g_scalar.c b/pd/src/g_scalar.c index 1212e79b47b6408a7d95013d364841b8f4d6855c..e1c29df761e9252c8df64dfb447c45e5037a3a90 100644 --- a/pd/src/g_scalar.c +++ b/pd/src/g_scalar.c @@ -549,7 +549,6 @@ void scalar_drawselectrect(t_scalar *x, t_glist *glist, int state) glist_xtopixels(glist, 0); t_float yscale = glist_ytopixels(glist, 1) - glist_ytopixels(glist, 0); -post("xsclae is %g and yscale is %g", xscale, yscale); //sys_vgui(".x%lx.c create prect %d %d %d %d " // "-strokewidth 1 -stroke $pd_colors(selection) " // "-tags {select%lx selected}\n", @@ -795,8 +794,9 @@ static void scalar_group_configure(t_scalar *x, t_glist *owner, } } -void scalar_configure(t_scalar *x, t_glist *owner) +void scalar_doconfigure(t_gobj *xgobj, t_glist *owner) { + t_scalar *x = (t_scalar *)xgobj; int vis = glist_isvisible(owner); if (vis) { @@ -869,6 +869,11 @@ void scalar_configure(t_scalar *x, t_glist *owner) } } +void scalar_configure(t_scalar *x, t_glist *owner) +{ + sys_queuegui(x, owner, scalar_doconfigure); +} + static void scalar_groupvis(t_scalar *x, t_glist *owner, t_template *template, t_glist *gl, t_glist *parent, int vis) {