stroke-miterlimit is operating in device space
Submitted by Aidan Kane
Assigned to Chris Wilson @ickle
Link to original bug (#100703)
Description
When applying the stroke-miterlimit, cairo is using the slopes of the lines after transformations are applied to figure out when to switch to bevel.
I've patched this in cairo-path-stroke-polygon.c to fix it and to make it consistent with the way cairo-path-stroke-traps.c, cairo-path-stroke-tristrip.c and cairo-path-stroke.c all do it.
Finally, I'm a) not a C guy and b) don't really know the cairo code so forgive me if any of this is off the mark!
I've attached an example with the bottom 2 line un-transformed, and the top 2 being squashed.
Version: 1.12.16