[quartz] Leftbehind change from a39075c88f

This commit completes the change in a39075c88f.
It removes unused variables and corrects the extents rect computation.
This commit is contained in:
Andrea Canciani 2010-01-15 16:28:12 +01:00
parent 6950b233e4
commit 5d9e2fd84b

View file

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