[cairo-commit] src/cairo-clip.c
Chris Wilson
ickle at kemper.freedesktop.org
Tue Jun 21 02:00:00 PDT 2011
src/cairo-clip.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit 441f9c5037dd32464bd87e21108b702c0a3c508a
Author: Taekyun Kim <tkq.kim at samsung.com>
Date: Tue Jun 21 17:19:58 2011 +0900
Fix intersect_with_boxes() to produce tight clip extents
Previous code was intersecting extents with infinitely large rectangle.
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
diff --git a/src/cairo-clip.c b/src/cairo-clip.c
index a695cd7..b03e27c 100644
--- a/src/cairo-clip.c
+++ b/src/cairo-clip.c
@@ -1399,8 +1399,9 @@ intersect_with_boxes (cairo_composite_rectangles_t *extents,
cairo_rectangle_int_t rect;
cairo_box_t box;
- box.p1.x = box.p1.y = INT_MIN;
- box.p2.x = box.p2.y = INT_MAX;
+ /* Find the extents over all the clip boxes */
+ box.p1.x = box.p1.y = INT_MAX;
+ box.p2.x = box.p2.y = INT_MIN;
while (num_boxes--) {
if (boxes->p1.x < box.p1.x)
box.p1.x = boxes->p1.x;
More information about the cairo-commit
mailing list