[cairo-bugs] [Bug 39675] [bisected] polygon clipper (?) bug

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Jul 29 12:05:17 PDT 2011


--- Comment #2 from Chris Wilson <chris at chris-wilson.co.uk> 2011-07-29 12:05:16 PDT ---
We fixed one related bug:

commit cac96c8083214f8e5aa65e9a527f9fa3e813b149
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Wed Jul 27 17:02:53 2011 +0100

    polygon: Fix clipping of edges outside of their range

    Uli Schlachter analysed the error behind the polygon reduction and
    discovered that it was due to the clipping of a line which intersects
    the clip box (p1, p2) but is range limited by (top, bottom) to be inside
    the clip box.

    Fixes hatching

    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

commit d7abdab931c1219314c07c0ecf21b0afef19108a
Author: Andrea Canciani <ranma42 at gmail.com>
Date:   Wed Jul 27 18:58:03 2011 +0200

    polygon: Fix generic case of edge clipping

    The edge clipper is more complicated than it should be and contains a
    subtle bug: when an edge is almost horizontal, it is always considered
    as having a positive slope.

    Explain what should be done and do it in a simpler way.

    Fixes horizontal-clip.

does this fix yours? If not we need another test case...

Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the cairo-bugs mailing list