mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-04 00:30:20 +01:00
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:
parent
09b42c748e
commit
cea41a61c1
1 changed files with 4 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue