aboutsummaryrefslogtreecommitdiffstats
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
parenteina: updated matrix_translate, matrix_scale and matrix_rotate implementation... (diff)
downloadefl-451a15802add5ff08e763c04674018ae80dec466.tar.gz
evas: update matrix calulation as the behaviour of eina_matrix api changed.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-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)
#define EFL_VG_COMPUTE_MATRIX(Current, Parent, Nd) \
Eina_Matrix3 *Current = Nd->m; \
- Eina_Matrix3 _matrix_tmp, translate; \
+ Eina_Matrix3 _matrix_tmp; \
\
if (Parent) \
{ \
@@ -70,10 +70,10 @@ _efl_vg_base_changed(Eo *obj)
} \
else \
{ \
- eina_matrix3_translate(&translate, -(Nd->x), -(Nd->y)); \
- eina_matrix3_compose(Parent, &translate, &_matrix_tmp); \
- eina_matrix3_translate(&translate, (Nd->x), (Nd->y)); \
- eina_matrix3_compose(&_matrix_tmp, &translate, &_matrix_tmp); \
+ eina_matrix3_identity(&_matrix_tmp); \
+ eina_matrix3_translate(&_matrix_tmp, -(Nd->x), -(Nd->y)); \
+ eina_matrix3_compose(Parent, &_matrix_tmp, &_matrix_tmp); \
+ eina_matrix3_translate(&_matrix_tmp, (Nd->x), (Nd->y)); \
Current = &_matrix_tmp; \
} \
}