[lasem] svg_feTile: fix rendering of batik feTile.svg test



commit bc0aab4efd1829ef1dc35c7c6f092e27df4b2596
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Sat Aug 15 22:25:45 2015 +0200

    svg_feTile: fix rendering of batik feTile.svg test

 src/lsmsvgfiltersurface.c                          |    4 ++--
 .../spec/{filters => styling}/filterRegions.png    |  Bin 14012 -> 14012 bytes
 .../spec/{filters => styling}/filterRegions.svg    |    0
 3 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/lsmsvgfiltersurface.c b/src/lsmsvgfiltersurface.c
index 3763f17..4eb45f2 100644
--- a/src/lsmsvgfiltersurface.c
+++ b/src/lsmsvgfiltersurface.c
@@ -608,14 +608,14 @@ lsm_svg_filter_surface_tile (LsmSvgFilterSurface *input, LsmSvgFilterSurface *ou
 
        surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, input->subregion.width, 
input->subregion.height);
        cairo = cairo_create (surface);
-       cairo_set_source_surface (cairo, input->surface, input->subregion.x, input->subregion.y);
+       cairo_set_source_surface (cairo, input->surface, -input->subregion.x, -input->subregion.y);
        cairo_paint (cairo);
        cairo_destroy (cairo);
 
        cairo = cairo_create (output->surface);
        cairo_rectangle (cairo, output->subregion.x, output->subregion.y, output->subregion.width, 
output->subregion.height);
        cairo_clip (cairo);
-       cairo_set_source_surface (cairo, surface, 0, 0);
+       cairo_set_source_surface (cairo, surface, input->subregion.x, input->subregion.y);
        pattern = cairo_get_source (cairo);
        cairo_pattern_set_extend (pattern, CAIRO_EXTEND_REPEAT);
        cairo_paint (cairo);
diff --git a/tests/data/svg/batik/spec/filters/filterRegions.svg 
b/tests/data/svg/batik/spec/styling/filterRegions.svg
similarity index 100%
rename from tests/data/svg/batik/spec/filters/filterRegions.svg
rename to tests/data/svg/batik/spec/styling/filterRegions.svg


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]