mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-25 22:20:38 +01:00
subsurface: Don't apply device transform twice for source/mask
This commit is contained in:
parent
e79acf47a5
commit
174fb5f16f
1 changed files with 0 additions and 12 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue