summaryrefslogtreecommitdiff
path: root/src/cairo-stroke-dash.c
Commit message (Collapse)AuthorAgeFilesLines
* dash: Increment dash_remain by the next segment to reduce accumulation errorsChris Wilson2012-04-191-1/+1
| | | | Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
* dash: Use a epsilon compare for stepping the dashChris Wilson2012-04-191-1/+1
| | | | | | | | | Due to rounding errors that may creep in comparing against 0.0 is dangerous and may result in an infinite loop whilst generating dashes that consumes all memory. Reported-and-tested-by: Uli Schlachter <psychon@znc.in> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
* stroke: Rely on the tessellator to remove self-intersectionsChris Wilson2011-08-131-0/+96
As handling joins/caps between line segments shorter than half_line_width is tricky. Rather than also fixing the bug in traps, remove that code. The plan is to avoiding hitting the traps code, short-circuiting several steps along the fast rectangular paths. Fixes line-width-overlap. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>