[cairo-commit] src/cairo-traps-compositor.c

Chris Wilson ickle at kemper.freedesktop.org
Sun Sep 18 01:29:24 PDT 2011


 src/cairo-traps-compositor.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 1b4030408750a705b365ccfb6386be7e15d490bd
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Sun Sep 18 09:28:17 2011 +0100

    traps: use the customised _cairo_clip_get_surface
    
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/cairo-traps-compositor.c b/src/cairo-traps-compositor.c
index c84fa5f..012719a 100644
--- a/src/cairo-traps-compositor.c
+++ b/src/cairo-traps-compositor.c
@@ -1053,13 +1053,13 @@ composite_aligned_boxes (const cairo_traps_compositor_t *compositor,
 	int mask_x = 0, mask_y = 0;
 
 	if (need_clip_mask) {
-	    mask = _cairo_clip_get_surface (extents->clip, dst,
-					    &mask_x, &mask_y);
+	    mask = traps_get_clip_surface (compositor, dst, extents->clip,
+					   &extents->bounded);
 	    if (unlikely (mask->status))
 		return mask->status;
 
-	    mask_x = -mask_x;
-	    mask_y = -mask_y;
+	    mask_x = -extents->bounded.x;
+	    mask_y = -extents->bounded.y;
 
 	    if (op == CAIRO_OPERATOR_CLEAR) {
 		source = NULL;


More information about the cairo-commit mailing list