From cea41a61c104f235c1f896207115507aed93d9ea Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 17 Sep 2011 12:01:49 +0100 Subject: [PATCH] image: intersect the source extents with the replay extents for EXTEND_NONE Fixes up the boundary on EXTEND_NONE replays. Signed-off-by: Chris Wilson --- src/cairo-image-source.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cairo-image-source.c b/src/cairo-image-source.c index c6c53457e..4c2c1d253 100644 --- a/src/cairo-image-source.c +++ b/src/cairo-image-source.c @@ -639,8 +639,11 @@ _pixman_image_for_recording (cairo_image_surface_t *dst, } else extend = CAIRO_EXTEND_NONE; - if (extend == CAIRO_EXTEND_NONE) + if (extend == CAIRO_EXTEND_NONE) { limit = *extents; + if (! _cairo_rectangle_intersect (&limit, sample)) + return _pixman_transparent_image (); + } if (dst->base.content == source->content) clone = cairo_image_surface_create (dst->format,