From 30cf6312d4c3153a95738f20630cdfed7aa0942b Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes <jon.w.wilkes@gmail.com> Date: Tue, 30 Jun 2015 20:53:55 -0400 Subject: [PATCH] fixed garray regression with polygon style larger than 1000 elements --- pd/src/g_template.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pd/src/g_template.c b/pd/src/g_template.c index 8db6a3019..57a83e933 100644 --- a/pd/src/g_template.c +++ b/pd/src/g_template.c @@ -5556,7 +5556,13 @@ static void plot_vis(t_gobj *z, t_glist *glist, t_glist *parentglist, xpix = fielddesc_cvttocoord(xfielddesc, usexloc); ixpix = xpix + 0.5; - if (xonset >= 0 || ixpix != lastpixel) + + int render; + + render = (int)(glist_xtopixels(glist, ixpix)) != + (int)(glist_xtopixels(glist, lastpixel)); + + if (xonset >= 0 || render) { //sys_vgui("%d %f \\\n", ixpix, // yloc + fielddesc_cvttocoord(yfielddesc, -- GitLab