diff options
author | Benjamin Otte <otte@redhat.com> | 2010-08-26 13:55:02 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-08-26 13:55:02 +0200 |
commit | d1c35f5e65d53f6b8b9060455335424ca0f44bd0 (patch) | |
tree | 575c9115511221cd22174c0dc78d683f0c9f165a /src | |
parent | 174fb5f16f93887e2f319edd5b46efae3e7e93ad (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/cairo-surface-subsurface.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/cairo-surface-subsurface.c b/src/cairo-surface-subsurface.c index 36bd9fbe..aebb7d6d 100644 --- a/src/cairo-surface-subsurface.c +++ b/src/cairo-surface-subsurface.c @@ -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; |