mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-04 12:58:00 +02:00
do not ignore errors in setup_source
In setup_source we were ignoring a return value, but we can't relay it to the caller. This patch treats the error as an unsupported operation.
This commit is contained in:
parent
b6b9cef713
commit
07fd091e3e
1 changed files with 5 additions and 1 deletions
|
|
@ -676,6 +676,7 @@ _cairo_quartz_setup_source (cairo_quartz_surface_t *surface,
|
|||
CGImageRef img = CGBitmapContextCreateImage (quartz_surf->cgContext);
|
||||
cairo_matrix_t m = spat->base.matrix;
|
||||
cairo_rectangle_int_t extents;
|
||||
cairo_status_t status;
|
||||
|
||||
if (!img)
|
||||
return DO_UNSUPPORTED;
|
||||
|
|
@ -685,7 +686,10 @@ _cairo_quartz_setup_source (cairo_quartz_surface_t *surface,
|
|||
cairo_matrix_invert(&m);
|
||||
_cairo_quartz_cairo_matrix_to_quartz (&m, &surface->sourceImageTransform);
|
||||
|
||||
_cairo_surface_get_extents (pat_surf, &extents);
|
||||
status = _cairo_surface_get_extents (pat_surf, &extents);
|
||||
if (status)
|
||||
return DO_UNSUPPORTED;
|
||||
|
||||
surface->sourceImageRect = CGRectMake (0, 0, extents.width, extents.height);
|
||||
|
||||
surface->sourceImageSurface = (cairo_surface_t *)quartz_surf;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue