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@redhat.com>
This commit is contained in:
Robert O'Callahan 2011-01-18 13:52:21 +01:00 committed by Andrea Canciani
parent b0e1c837ac
commit 922bbd4320

View file

@ -450,9 +450,6 @@ cairo_tee_surface_create (cairo_surface_t *master)
master->content);
_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));