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@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2011-09-20 14:34:23 +01:00
parent 5f0dcf610f
commit f8c4686310

View file

@ -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 */
}