mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-04-05 06:40:39 +02:00
spans-compositor: After polygon intersection the fill rule is always non-zero
As it turns out due to the rules of polygon intersection, there is never any overlapping spans so the choice is arbitrary. However, lets be consistent with the rest of the code. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
37532b47c0
commit
1bc696a8fd
1 changed files with 2 additions and 0 deletions
|
|
@ -934,6 +934,8 @@ clip_and_composite_polygon (const cairo_spans_compositor_t *compositor,
|
|||
status = trim_extents_to_polygon (extents, polygon);
|
||||
if (unlikely (status))
|
||||
return status;
|
||||
|
||||
fill_rule = CAIRO_FILL_RULE_WINDING;
|
||||
} else {
|
||||
_cairo_polygon_fini (&clipper);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue