mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 11:28:02 +02:00
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:
parent
85110d9ce1
commit
5b107587e7
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue