[cairo-commit] src/cairo-surface-subsurface.c

Benjamin Otte company at kemper.freedesktop.org
Thu Aug 26 05:01:11 PDT 2010


 src/cairo-surface-subsurface.c |    3 ---
 1 file changed, 3 deletions(-)

New commits:
commit d1c35f5e65d53f6b8b9060455335424ca0f44bd0
Author: Benjamin Otte <otte at redhat.com>
Date:   Thu Aug 26 13:55:02 2010 +0200

    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.

diff --git a/src/cairo-surface-subsurface.c b/src/cairo-surface-subsurface.c
index 36bd9fb..aebb7d6 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;


More information about the cairo-commit mailing list