forked from enlightenment/efl
evas: update Evas_Object_VG examples to use eina_matrix api correctly after change.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
parent
451a15802a
commit
40bdc50a12
|
@ -148,6 +148,7 @@ main(void)
|
||||||
root = evas_object_vg_root_node_get(vg);
|
root = evas_object_vg_root_node_get(vg);
|
||||||
|
|
||||||
Eina_Matrix3 matrix;
|
Eina_Matrix3 matrix;
|
||||||
|
eina_matrix3_identity(&matrix);
|
||||||
eina_matrix3_scale(&matrix, 1.1, 1.1);
|
eina_matrix3_scale(&matrix, 1.1, 1.1);
|
||||||
evas_vg_node_transformation_set(root, &matrix);
|
evas_vg_node_transformation_set(root, &matrix);
|
||||||
|
|
||||||
|
|
|
@ -437,6 +437,7 @@ vector_set(int x, int y, int w, int h)
|
||||||
// apply some transformation
|
// apply some transformation
|
||||||
double radian = 30.0 * 2 * 3.141 / 360.0;
|
double radian = 30.0 * 2 * 3.141 / 360.0;
|
||||||
Eina_Matrix3 matrix;
|
Eina_Matrix3 matrix;
|
||||||
|
eina_matrix3_identity(&matrix);
|
||||||
eina_matrix3_rotate(&matrix, radian);
|
eina_matrix3_rotate(&matrix, radian);
|
||||||
|
|
||||||
Efl_VG *root = evas_object_vg_root_node_get(d.vg);
|
Efl_VG *root = evas_object_vg_root_node_get(d.vg);
|
||||||
|
|
Loading…
Reference in New Issue