mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 13:28:03 +02:00
[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:
parent
6950b233e4
commit
5d9e2fd84b
1 changed files with 1 additions and 3 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue