From 818d512da3de24b1a871e0b3b9054f71da976244 Mon Sep 17 00:00:00 2001 From: Albert Graef <aggraef@gmail.com> Date: Sat, 3 Dec 2016 21:21:10 +0100 Subject: [PATCH] Fix up scalar bbox calculation of array plots, fixes #162. --- pd/src/g_array.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pd/src/g_array.c b/pd/src/g_array.c index e2df01c98..a34abd4e8 100644 --- a/pd/src/g_array.c +++ b/pd/src/g_array.c @@ -870,11 +870,11 @@ void array_getcoordinate(t_glist *glist, // so that the smallest hitbox is always at least 8x8 // check with all_about_arrays.pd inside custom scalars // in an array - if (*xp1 == *xp2) + if (glist_topixels && *xp1 == *xp2) { *xp1 = *xp1 - 4; *xp2 = *xp2 + 4; - wpix = 8; + if (wpix < 8) wpix = 8; } *wp = wpix; } -- GitLab