summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_vg_shape.c
diff options
context:
space:
mode:
authorSubhransu Sekhar Mohanty <sub.mohanty@samsung.com>2015-04-03 16:31:29 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-04-03 16:31:29 +0200
commit3dea7dbfaf49705e13e2a20f207190a32f6f2de8 (patch)
treef66872d45e7e8e3e6f08e086ef90abe440ff4051 /src/lib/evas/canvas/evas_vg_shape.c
parentabc64b75267bff4ac7cd8bb758172bb3ea7eb36e (diff)
evas: update and propagate Evas_VG_Base transformation.
Diffstat (limited to 'src/lib/evas/canvas/evas_vg_shape.c')
-rw-r--r--src/lib/evas/canvas/evas_vg_shape.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_vg_shape.c b/src/lib/evas/canvas/evas_vg_shape.c
index 627f819..8c1caee 100644
--- a/src/lib/evas/canvas/evas_vg_shape.c
+++ b/src/lib/evas/canvas/evas_vg_shape.c
@@ -280,10 +280,13 @@ _efl_vg_shape_render_pre(Eo *obj EINA_UNUSED,
280{ 280{
281 Efl_VG_Shape_Data *pd = data; 281 Efl_VG_Shape_Data *pd = data;
282 Efl_VG_Base_Data *fill, *stroke_fill, *stroke_marker, *mask; 282 Efl_VG_Base_Data *fill, *stroke_fill, *stroke_marker, *mask;
283 double xn = nd->x, yn = nd->y ;
283 284
284 if (!nd->changed) return ; 285 if (!nd->changed) return ;
285 nd->changed = EINA_FALSE; 286 nd->changed = EINA_FALSE;
286 287
288 if(parent) eina_matrix3_point_transform(parent, nd->x, nd->y, &xn, &yn);
289
287 EFL_VG_COMPUTE_MATRIX(current, parent, nd); 290 EFL_VG_COMPUTE_MATRIX(current, parent, nd);
288 291
289 fill = _evas_vg_render_pre(pd->fill, s, current); 292 fill = _evas_vg_render_pre(pd->fill, s, current);
@@ -298,7 +301,7 @@ _efl_vg_shape_render_pre(Eo *obj EINA_UNUSED,
298 301
299 eo_do(nd->renderer, 302 eo_do(nd->renderer,
300 ector_renderer_transformation_set(current), 303 ector_renderer_transformation_set(current),
301 ector_renderer_origin_set(nd->x, nd->y), 304 ector_renderer_origin_set(xn, yn),
302 ector_renderer_color_set(nd->r, nd->g, nd->b, nd->a), 305 ector_renderer_color_set(nd->r, nd->g, nd->b, nd->a),
303 ector_renderer_visibility_set(nd->visibility), 306 ector_renderer_visibility_set(nd->visibility),
304 ector_renderer_mask_set(mask ? mask->renderer : NULL), 307 ector_renderer_mask_set(mask ? mask->renderer : NULL),