diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-02-24 13:00:44 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-02-24 13:51:25 +0000 |
commit | c39cb77d64afdeff522a74d31af6386f5fd3c10f (patch) | |
tree | 1cfe9de28d335b74a4a621b9d85c312760e69dc4 /src/cairo-surface-subsurface.c | |
parent | b2cb9ec31ea580164a3d5a267bff334a0c6b4dc5 (diff) | |
download | cairo-c39cb77d64afdeff522a74d31af6386f5fd3c10f.tar.gz |
subsurface: Fix typo in snapshot creation
I need to remember that the translation for the pattern matrix is the
inverse of the translation for drawing.
Fixes: subsurface-modify-parent
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/cairo-surface-subsurface.c')
-rw-r--r-- | src/cairo-surface-subsurface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-surface-subsurface.c b/src/cairo-surface-subsurface.c index bced245c4..8590bf0ca 100644 --- a/src/cairo-surface-subsurface.c +++ b/src/cairo-surface-subsurface.c @@ -368,7 +368,7 @@ _cairo_surface_subsurface_snapshot (void *abstract_surface) _cairo_pattern_init_for_surface (&pattern, surface->target); cairo_matrix_init_translate (&pattern.base.matrix, - -surface->extents.x, -surface->extents.y); + surface->extents.x, surface->extents.y); pattern.base.filter = CAIRO_FILTER_NEAREST; status = _cairo_surface_paint (clone, CAIRO_OPERATOR_SOURCE, |