[cairo-commit] src/cairo-quartz-surface.c

Andrea Canciani ranma42 at kemper.freedesktop.org
Fri Jan 15 07:30:37 PST 2010


 src/cairo-quartz-surface.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 5d9e2fd84b4f66e5b121d95805ce34e2f482d1b0
Author: Andrea Canciani <ranma42 at gmail.com>
Date:   Fri Jan 15 16:28:12 2010 +0100

    [quartz] Leftbehind change from a39075c88f9b2e12e19348ea11c9b3f739818265
    
    This commit completes the change in a39075c88f9b2e12e19348ea11c9b3f739818265.
    It removes unused variables and corrects the extents rect computation.

diff --git a/src/cairo-quartz-surface.c b/src/cairo-quartz-surface.c
index 81a6aad..9e1cf5f 100644
--- a/src/cairo-quartz-surface.c
+++ b/src/cairo-quartz-surface.c
@@ -2361,13 +2361,11 @@ _cairo_quartz_surface_mask_with_surface (cairo_quartz_surface_t *surface,
                                          const cairo_surface_pattern_t *mask,
 					 cairo_clip_t *clip)
 {
-    cairo_rectangle_int_t mask_extents;
     CGRect rect;
     CGImageRef img;
     cairo_surface_t *pat_surf = mask->surface;
     cairo_status_t status = CAIRO_STATUS_SUCCESS;
     CGAffineTransform ctm, mask_matrix;
-    cairo_bool_t is_bounded;
 
     status = _cairo_surface_to_cgimage ((cairo_surface_t *) surface, pat_surf, &img);
     if (status)
@@ -2378,7 +2376,7 @@ _cairo_quartz_surface_mask_with_surface (cairo_quartz_surface_t *surface,
 	return CAIRO_STATUS_SUCCESS;
     }
 
-    rect = CGRectMake (0.0f, 0.0f, mask_extents.width, mask_extents.height);
+    rect = CGRectMake (0.0f, 0.0f, CGImageGetWidth (img) , CGImageGetHeight (img));
 
     CGContextSaveGState (surface->cgContext);
 


More information about the cairo-commit mailing list