From f664ee1b3e9640681d8f206d13d9c4dcd19b4264 Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes <jon.w.wilkes@gmail.com> Date: Fri, 7 Oct 2016 18:23:15 -0400 Subject: [PATCH] for legacy drawing commands like [filledpolygon], don't scale the stroke (this is how it worked in Pd Vanilla) --- pd/src/g_template.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pd/src/g_template.c b/pd/src/g_template.c index e0f095b2d..c06fba701 100644 --- a/pd/src/g_template.c +++ b/pd/src/g_template.c @@ -4979,6 +4979,12 @@ static void curve_vis(t_gobj *z, t_glist *glist, t_glist *parentglist, gui_s("fill"); gui_s("none"); } + /* We add an attribute to keep the stroke from scaling, to keep + backwards compatibility with Pd Vanilla for curve. For the + newer [draw] objects we stick with the svg spec (and should + probably add a method for this attribute...) */ + gui_s("vector-effect"); + gui_s("non-scaling-stroke"); gui_end_array(); // Tags Array -- GitLab