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 <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2011-09-17 12:01:49 +01:00
parent 09b42c748e
commit cea41a61c1

View file

@ -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,