xlib: Trim the ximage to match the trimming of the intermediate

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-02-22 15:49:34 +00:00
parent 1111cc50d3
commit e5cb567f5d

View file

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