[cairo-commit] src/cairo-surface-offset.c
Benjamin Otte
company at kemper.freedesktop.org
Thu Aug 26 04:21:29 PDT 2010
src/cairo-surface-offset.c | 12 ------------
1 file changed, 12 deletions(-)
New commits:
commit 174fb5f16f93887e2f319edd5b46efae3e7e93ad
Author: Benjamin Otte <otte at redhat.com>
Date: Thu Aug 26 13:21:04 2010 +0200
subsurface: Don't apply device transform twice for source/mask
diff --git a/src/cairo-surface-offset.c b/src/cairo-surface-offset.c
index 9994d8f..69c1ffa 100644
--- a/src/cairo-surface-offset.c
+++ b/src/cairo-surface-offset.c
@@ -49,18 +49,6 @@ _copy_transformed_pattern (cairo_pattern_t *pattern,
{
_cairo_pattern_init_static_copy (pattern, original);
- /* apply device_transform first so that it is transformed by ctm_inverse */
- if (original->type == CAIRO_PATTERN_TYPE_SURFACE) {
- cairo_surface_pattern_t *surface_pattern;
- cairo_surface_t *surface;
-
- surface_pattern = (cairo_surface_pattern_t *) original;
- surface = surface_pattern->surface;
-
- if (_cairo_surface_has_device_transform (surface))
- _cairo_pattern_transform (pattern, &surface->device_transform);
- }
-
if (! _cairo_matrix_is_identity (ctm_inverse))
_cairo_pattern_transform (pattern, ctm_inverse);
}
More information about the cairo-commit
mailing list