diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-10-01 09:49:45 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2008-10-04 10:12:37 +0100 |
commit | 7a2329e9c8afbfecb88c6c50bd63aa03ea7f9f81 (patch) | |
tree | 2cbe2ac4c0de9811e262847a7b324fdd20ff9e95 /src/cairo-traps.c | |
parent | 8ec24a443d45b012df9b1a14b00a0b5b1c43e2ea (diff) | |
download | cairo-7a2329e9c8afbfecb88c6c50bd63aa03ea7f9f81.tar.gz |
[traps] Reset extents on clearing.
When clearing the array of current trapezoids, reset the extents to
infinite so that they are properly recomputed.
Diffstat (limited to 'src/cairo-traps.c')
-rw-r--r-- | src/cairo-traps.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cairo-traps.c b/src/cairo-traps.c index 3a38c6933..042a89e9b 100644 --- a/src/cairo-traps.c +++ b/src/cairo-traps.c @@ -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 |