summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_vg_private.h
diff options
context:
space:
mode:
authorSubhransu Mohanty <sub.mohanty@samsung.com>2015-04-17 11:22:48 +0900
committerCedric BAIL <cedric@osg.samsung.com>2015-04-17 10:52:28 +0200
commit451a15802add5ff08e763c04674018ae80dec466 (patch)
tree82920497bb2ed960678a54e5b756ad1e1156bce0 /src/lib/evas/canvas/evas_vg_private.h
parentee99232b36118eb4c132667f9dd8277681fa4e49 (diff)
evas: update matrix calulation as the behaviour of eina_matrix api changed.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/evas/canvas/evas_vg_private.h')
-rw-r--r--src/lib/evas/canvas/evas_vg_private.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/evas/canvas/evas_vg_private.h b/src/lib/evas/canvas/evas_vg_private.h
index 8f5bf4f98b..af4912ae72 100644
--- a/src/lib/evas/canvas/evas_vg_private.h
+++ b/src/lib/evas/canvas/evas_vg_private.h
@@ -59,7 +59,7 @@ _efl_vg_base_changed(Eo *obj)
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, translate; \ 62 Eina_Matrix3 _matrix_tmp; \
63 \ 63 \
64 if (Parent) \ 64 if (Parent) \
65 { \ 65 { \
@@ -70,10 +70,10 @@ _efl_vg_base_changed(Eo *obj)
70 } \ 70 } \
71 else \ 71 else \
72 { \ 72 { \
73 eina_matrix3_translate(&translate, -(Nd->x), -(Nd->y)); \ 73 eina_matrix3_identity(&_matrix_tmp); \
74 eina_matrix3_compose(Parent, &translate, &_matrix_tmp); \ 74 eina_matrix3_translate(&_matrix_tmp, -(Nd->x), -(Nd->y)); \
75 eina_matrix3_translate(&translate, (Nd->x), (Nd->y)); \ 75 eina_matrix3_compose(Parent, &_matrix_tmp, &_matrix_tmp); \
76 eina_matrix3_compose(&_matrix_tmp, &translate, &_matrix_tmp); \ 76 eina_matrix3_translate(&_matrix_tmp, (Nd->x), (Nd->y)); \
77 Current = &_matrix_tmp; \ 77 Current = &_matrix_tmp; \
78 } \ 78 } \
79 } 79 }