mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-03 15:10:17 +01:00
[traps] Reset extents on clearing.
When clearing the array of current trapezoids, reset the extents to infinite so that they are properly recomputed.
This commit is contained in:
parent
8ec24a443d
commit
7a2329e9c8
1 changed files with 2 additions and 0 deletions
|
|
@ -82,6 +82,8 @@ _cairo_traps_clear (cairo_traps_t *traps)
|
|||
traps->status = CAIRO_STATUS_SUCCESS;
|
||||
|
||||
traps->num_traps = 0;
|
||||
traps->extents.p1.x = traps->extents.p1.y = INT32_MAX;
|
||||
traps->extents.p2.x = traps->extents.p2.y = INT32_MIN;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue