mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-06 08:08:04 +02:00
[path-fixed] Distinguish cw and ccw boxes
To correctly handle retessellating trapezods constructed from alternately wound boxes, then we need to pass that information from the path to the tessellator. We do this by switching the direction of the box if the first edge is horizontal as opposed to vertical.
This commit is contained in:
parent
219d46a9eb
commit
20cdb99ae8
1 changed files with 2 additions and 2 deletions
|
|
@ -1300,8 +1300,8 @@ _cairo_path_fixed_iter_is_fill_box (cairo_path_fixed_iter_t *_iter,
|
|||
points[2].x == points[3].x &&
|
||||
points[3].y == points[0].y)
|
||||
{
|
||||
box->p1 = points[0];
|
||||
box->p2 = points[2];
|
||||
box->p1 = points[1];
|
||||
box->p2 = points[3];
|
||||
*_iter = iter;
|
||||
return TRUE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue