xlib: Correct the device-offset applied to the map-to-image result

A typo, a typo surely, to use extents->y twice instead of the more
normal x, y.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-02-22 15:13:26 +00:00
parent 85110d9ce1
commit 5b107587e7
2 changed files with 2 additions and 2 deletions

View file

@ -651,7 +651,7 @@ cairo_surface_map_to_image (cairo_surface_t *surface,
_cairo_format_from_content (surface->content),
extents->width,
extents->height);
cairo_surface_set_device_offset (image, -extents->y, -extents->y);
cairo_surface_set_device_offset (image, -extents->x, -extents->y);
_cairo_pattern_init_for_surface (&pattern, surface);
pattern.base.filter = CAIRO_FILTER_NEAREST;

View file

@ -1281,7 +1281,7 @@ _cairo_xlib_surface_map_to_image (void *abstract_surface,
cairo_surface_t *image;
image = _get_image_surface (abstract_surface, extents);
cairo_surface_set_device_offset (image, -extents->y, -extents->y);
cairo_surface_set_device_offset (image, -extents->x, -extents->y);
return image;
}