From e5cb567f5d7c87faf09e240fc1649eebf0b1f0f6 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 22 Feb 2012 15:49:34 +0000 Subject: [PATCH] xlib: Trim the ximage to match the trimming of the intermediate Signed-off-by: Chris Wilson --- src/cairo-xlib-surface.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cairo-xlib-surface.c b/src/cairo-xlib-surface.c index 322f92906..d8b0272d0 100644 --- a/src/cairo-xlib-surface.c +++ b/src/cairo-xlib-surface.c @@ -1078,6 +1078,8 @@ _cairo_xlib_surface_draw_image (cairo_xlib_surface_t *surface, 0, 0, width, height); + ximage.width = width; + ximage.height = height; ximage.bits_per_pixel = image_masks.bpp; ximage.data = (char *) pixman_image_get_data (pixman_image); ximage.bytes_per_line = pixman_image_get_stride (pixman_image);