summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_vg_private.h
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_private.h
parentabc64b75267bff4ac7cd8bb758172bb3ea7eb36e (diff)
evas: update and propagate Evas_VG_Base transformation.
Diffstat (limited to 'src/lib/evas/canvas/evas_vg_private.h')
-rw-r--r--src/lib/evas/canvas/evas_vg_private.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/lib/evas/canvas/evas_vg_private.h b/src/lib/evas/canvas/evas_vg_private.h
index 8db3396c02..8f5bf4f98b 100644
--- a/src/lib/evas/canvas/evas_vg_private.h
+++ b/src/lib/evas/canvas/evas_vg_private.h
@@ -57,10 +57,10 @@ _efl_vg_base_changed(Eo *obj)
57 eo_do(obj, eo_event_callback_call(EFL_GFX_CHANGED, NULL)); 57 eo_do(obj, eo_event_callback_call(EFL_GFX_CHANGED, NULL));
58} 58}
59 59
60#define EFL_VG_COMPUTE_MATRIX(Current, Parent, Nd) \ 60#define EFL_VG_COMPUTE_MATRIX(Current, Parent, Nd) \
61 Eina_Matrix3 *Current = Nd->m; \ 61 Eina_Matrix3 *Current = Nd->m; \
62 Eina_Matrix3 _matrix_tmp; \ 62 Eina_Matrix3 _matrix_tmp, translate; \
63 \ 63 \
64 if (Parent) \ 64 if (Parent) \
65 { \ 65 { \
66 if (Current) \ 66 if (Current) \
@@ -70,7 +70,11 @@ _efl_vg_base_changed(Eo *obj)
70 } \ 70 } \
71 else \ 71 else \
72 { \ 72 { \
73 Current = Parent; \ 73 eina_matrix3_translate(&translate, -(Nd->x), -(Nd->y)); \
74 eina_matrix3_compose(Parent, &translate, &_matrix_tmp); \
75 eina_matrix3_translate(&translate, (Nd->x), (Nd->y)); \
76 eina_matrix3_compose(&_matrix_tmp, &translate, &_matrix_tmp); \
77 Current = &_matrix_tmp; \
74 } \ 78 } \
75 } 79 }
76 80