From f162f7ebb47fe87ffadade15456699ef2b556fbf Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Thu, 22 Sep 2011 22:03:46 +0200 Subject: [PATCH] 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 --- src/cairo-xcb-surface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cairo-xcb-surface.c b/src/cairo-xcb-surface.c index d6bef8305..75a1f87a8 100644 --- a/src/cairo-xcb-surface.c +++ b/src/cairo-xcb-surface.c @@ -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);