mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-09 02:38:07 +02:00
[cairo-xlib-surface] Propagate error from _draw_image_surface() to surface.
Instead of simply ignoring the error that may occur when we upload the destination image to the xlib surface (via XPutImage) record the error on the xlib surface.
This commit is contained in:
parent
9c65efeeb1
commit
4958789b9e
1 changed files with 5 additions and 3 deletions
|
|
@ -810,10 +810,12 @@ _cairo_xlib_surface_release_dest_image (void *abstract_surfac
|
|||
void *image_extra)
|
||||
{
|
||||
cairo_xlib_surface_t *surface = abstract_surface;
|
||||
cairo_status_t status;
|
||||
|
||||
/* ignore errors */
|
||||
_draw_image_surface (surface, image, 0, 0, image->width, image->height,
|
||||
image_rect->x, image_rect->y);
|
||||
status = _draw_image_surface (surface, image,
|
||||
0, 0, image->width, image->height,
|
||||
image_rect->x, image_rect->y);
|
||||
status = _cairo_surface_set_error (&surface->base, status);
|
||||
|
||||
cairo_surface_destroy (&image->base);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue