mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-09 20:30:24 +01:00
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:
parent
1111cc50d3
commit
e5cb567f5d
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue