CoreGraphics Dashed Lines, Bevel Joins Bug

This is two lines, one is solid black and the other is red and dashed, both 100pts wide, same end points. When the line join style is set to bevel and the ctm is rotated the dashes are overzealously clipped by CoreGraphics. The dashes should continue all the way up to the top as the black line does. It will also show up if the miter limit is zero which effectively uses bevel joins. It won't show up if you just draw the lines without the rotation. The bug will appear with various combinations of line widths, angles and dashes in a similar position along the edge of the view.
Example code here: http://www.objc.net/blog-media/2008-03-26/DashedLinesBug.zip
Shows up on 10.4.11 and 10.5.2
I noticed this while working on a new software renderer for Cocotron, the renderer was drawing the dashes and CG wasn't.
Labels: bug, coregraphics

2 Comments:
Ick.
No radar #. Did you file a bug?
Homey don't play dat game.
Post a Comment
<< Home