mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-08 06:48:03 +02:00
subsurface: Don't clip size to target size
This clipping would modify the origin of the subsurface and then the creator has no easy way to figure this out.
This commit is contained in:
parent
174fb5f16f
commit
d1c35f5e65
1 changed files with 0 additions and 3 deletions
|
|
@ -517,9 +517,6 @@ cairo_surface_create_for_rectangle (cairo_surface_t *target,
|
|||
surface->extents.width = floor (x + width) - surface->extents.x;
|
||||
surface->extents.height = floor (y + height) - surface->extents.y;
|
||||
|
||||
if (_cairo_surface_get_extents (target, &target_extents))
|
||||
ret = _cairo_rectangle_intersect (&surface->extents, &target_extents);
|
||||
|
||||
if (target->backend->type == CAIRO_SURFACE_TYPE_SUBSURFACE) {
|
||||
/* Maintain subsurfaces as 1-depth */
|
||||
cairo_surface_subsurface_t *sub = (cairo_surface_subsurface_t *) target;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue