[cairo-commit] src/cairo-image-source.c

Chris Wilson ickle at kemper.freedesktop.org
Tue Sep 20 06:35:55 PDT 2011


 src/cairo-image-source.c |    8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

New commits:
commit f8c4686310b2b538cebb59f64b2ab8c6def86628
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Tue Sep 20 14:34:23 2011 +0100

    image: don't offset by device transform for replay onto source surface
    
    It is already captured by the pattern extents.
    
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/cairo-image-source.c b/src/cairo-image-source.c
index da6dc08..943790d 100644
--- a/src/cairo-image-source.c
+++ b/src/cairo-image-source.c
@@ -676,12 +676,10 @@ _pixman_image_for_recording (cairo_image_surface_t *dst,
 
     m = NULL;
     if (extend == CAIRO_EXTEND_NONE) {
-	m = &matrix;
-	cairo_matrix_multiply (m,
-			       &dst->base.device_transform,
-			       &pattern->base.matrix);
+	matrix = pattern->base.matrix;
 	if (tx | ty)
-	    cairo_matrix_translate (m, tx, ty);
+	    cairo_matrix_translate (&matrix, tx, ty);
+	m = &matrix;
     } else {
 	/* XXX extract scale factor for repeating patterns */
     }


More information about the cairo-commit mailing list