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

Adrian Johnson ajohnson at kemper.freedesktop.org
Sun Nov 21 01:48:31 PST 2010


 src/cairo-surface-wrapper.c |   12 ------------
 1 file changed, 12 deletions(-)

New commits:
commit 3445401ae6bc8687fc76f690016cc281c388005d
Author: Adrian Johnson <ajohnson at redneon.com>
Date:   Sun Nov 21 20:09:13 2010 +1030

    Fix regression in fallback-resolution test
    
    a2254e56 caused the fallback-resolution test to display empty fallback
    images for to push_group/pop_group part of the test.

diff --git a/src/cairo-surface-wrapper.c b/src/cairo-surface-wrapper.c
index 39e90f0..9667305 100644
--- a/src/cairo-surface-wrapper.c
+++ b/src/cairo-surface-wrapper.c
@@ -49,18 +49,6 @@ _copy_transformed_pattern (cairo_pattern_t *pattern,
 {
     _cairo_pattern_init_static_copy (pattern, original);
 
-    /* apply device_transform first so that it is transformed by ctm_inverse */
-    if (original->type == CAIRO_PATTERN_TYPE_SURFACE) {
-	cairo_surface_pattern_t *surface_pattern;
-	cairo_surface_t *surface;
-
-        surface_pattern = (cairo_surface_pattern_t *) original;
-        surface = surface_pattern->surface;
-
-	if (_cairo_surface_has_device_transform (surface))
-	    _cairo_pattern_transform (pattern, &surface->device_transform);
-    }
-
     if (! _cairo_matrix_is_identity (ctm_inverse))
 	_cairo_pattern_transform (pattern, ctm_inverse);
 }


More information about the cairo-commit mailing list