[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:
Chris Wilson 2007-10-09 12:49:08 +01:00
parent 9c65efeeb1
commit 4958789b9e

View file

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