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

Andrea Canciani ranma42 at kemper.freedesktop.org
Tue Jan 18 05:06:35 PST 2011

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

New commits:
commit 922bbd432011728304fe5647467545a52b9ab9b0
Author: Robert O'Callahan <robert at ocallahan.org>
Date:   Tue Jan 18 13:52:21 2011 +0100

    tee: Do not apply two times the master device transform
    cairo_tee_surface_create copies the device transform from 'master' to
    the new surface. This is wrong since all the cairo_surface_wrapper
    functions apply master's device transform themselves.
    Reviewed-by: Benjamin Otte <otte at redhat.com>

diff --git a/src/cairo-tee-surface.c b/src/cairo-tee-surface.c
index e37cef8..83811bd 100644
--- a/src/cairo-tee-surface.c
+++ b/src/cairo-tee-surface.c
@@ -450,9 +450,6 @@ cairo_tee_surface_create (cairo_surface_t *master)
     _cairo_surface_wrapper_init (&surface->master, master);
-    /* we trust that these are already set and remain constant */
-    surface->base.device_transform = master->device_transform;
-    surface->base.device_transform_inverse = master->device_transform_inverse;
     _cairo_array_init (&surface->slaves, sizeof (cairo_surface_wrapper_t));

More information about the cairo-commit mailing list