aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSubhransu Mohanty <sub.mohanty@samsung.com>2015-04-17 11:24:47 +0900
committerCedric BAIL <cedric@osg.samsung.com>2015-04-17 10:53:05 +0200
commit40bdc50a12975f927fc9490d9b81f5f597c56b33 (patch)
tree265515c21ca43c6fa971ab0b053d8615e368de30
parentevas: update matrix calulation as the behaviour of eina_matrix api changed. (diff)
downloadefl-40bdc50a12975f927fc9490d9b81f5f597c56b33.tar.gz
evas: update Evas_Object_VG examples to use eina_matrix api correctly after change.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r--src/examples/evas/evas-vg-batman.c1
-rw-r--r--src/examples/evas/evas-vg-simple.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/examples/evas/evas-vg-batman.c b/src/examples/evas/evas-vg-batman.c
index 116150ae2f..f17636d2fe 100644
--- a/src/examples/evas/evas-vg-batman.c
+++ b/src/examples/evas/evas-vg-batman.c
@@ -148,6 +148,7 @@ main(void)
root = evas_object_vg_root_node_get(vg);
Eina_Matrix3 matrix;
+ eina_matrix3_identity(&matrix);
eina_matrix3_scale(&matrix, 1.1, 1.1);
evas_vg_node_transformation_set(root, &matrix);
diff --git a/src/examples/evas/evas-vg-simple.c b/src/examples/evas/evas-vg-simple.c
index b125e3f2a0..61fc7040ff 100644
--- a/src/examples/evas/evas-vg-simple.c
+++ b/src/examples/evas/evas-vg-simple.c
@@ -437,6 +437,7 @@ vector_set(int x, int y, int w, int h)
// apply some transformation
double radian = 30.0 * 2 * 3.141 / 360.0;
Eina_Matrix3 matrix;
+ eina_matrix3_identity(&matrix);
eina_matrix3_rotate(&matrix, radian);
Efl_VG *root = evas_object_vg_root_node_get(d.vg);