[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:
Chris Wilson 2008-10-01 09:49:45 +01:00
parent 8ec24a443d
commit 7a2329e9c8

View file

@ -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