diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-01-09 12:38:09 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-01-09 12:38:09 +0000 |
commit | dd20c1f4d6419238bbb37fb93a48986f83c6e6c2 (patch) | |
tree | ff16a47fec450ae6632e2ffd1de119cba4aa7efc /src/cairo-xlib-source.c | |
parent | 351a9e756d0863ae7408c6d43a622620daa0c354 (diff) |
xlib: map-to-image requires an extents
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/cairo-xlib-source.c')
-rw-r--r-- | src/cairo-xlib-source.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cairo-xlib-source.c b/src/cairo-xlib-source.c index d08052a4f..0689d8299 100644 --- a/src/cairo-xlib-source.c +++ b/src/cairo-xlib-source.c @@ -968,8 +968,9 @@ surface_source (cairo_xlib_surface_t *dst, 0, 0); } else { cairo_image_surface_t *image; + cairo_rectangle_int_t map_extents = { 0,0, upload.width,upload.height }; - image = _cairo_surface_map_to_image (&xsrc->base, NULL); + image = _cairo_surface_map_to_image (&xsrc->base, &map_extents); _cairo_pattern_init_for_surface (&local_pattern, pattern->surface); cairo_matrix_init_translate (&local_pattern.base.matrix, |