mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 09:58:12 +02:00
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:
parent
5f0dcf610f
commit
f8c4686310
1 changed files with 3 additions and 5 deletions
|
|
@ -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 */
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue