summaryrefslogtreecommitdiff
path: root/src/cairo-xlib-surface.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-02-22 15:49:34 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2012-02-22 15:49:34 +0000
commite5cb567f5d7c87faf09e240fc1649eebf0b1f0f6 (patch)
tree2c86007fbea21aafe64141a78fc68bb0a39330db /src/cairo-xlib-surface.c
parent1111cc50d3311fa47b0828e28085388ef746322a (diff)
downloadcairo-e5cb567f5d7c87faf09e240fc1649eebf0b1f0f6.tar.gz
xlib: Trim the ximage to match the trimming of the intermediate
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/cairo-xlib-surface.c')
-rw-r--r--src/cairo-xlib-surface.c2
1 files changed, 2 insertions, 0 deletions
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);