xcb: Fix device offsets with unmap_image()

The source and target x/y coordinates were swapped. No idea why this only now
caused a test suite failure, perhaps something recently started using SHM?

Fixes: map-bit-to-image, map-to-image-fill

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2011-09-22 22:03:46 +02:00
parent 880321ae9d
commit f162f7ebb4

View file

@ -526,10 +526,10 @@ _put_shm_image (cairo_xcb_surface_t *surface,
surface->drawable,
gc,
surface->width, surface->height,
0, 0,
image->width, image->height,
image->base.device_transform_inverse.x0,
image->base.device_transform_inverse.y0,
image->width, image->height,
0, 0,
image->depth,
shm_info->shm,
shm_info->offset);