summaryrefslogtreecommitdiff
path: root/src/examples/evas
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-04-03 14:22:08 -0700
committerCedric BAIL <cedric@osg.samsung.com>2018-04-03 14:26:59 -0700
commit4748cd7da21f1e514c5c8cc7291773b817b43553 (patch)
treeff57b15cb1534084ad60ee58a41bc7488cc4b1ee /src/examples/evas
parentd1e7a9474cc8dca46aa2c1eec7adac19a9fa84b0 (diff)
evas: update example to always set a parent for VG node.
Diffstat (limited to 'src/examples/evas')
-rw-r--r--src/examples/evas/evas-vg-batman.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/examples/evas/evas-vg-batman.c b/src/examples/evas/evas-vg-batman.c
index 5271608390..cb13912c4b 100644
--- a/src/examples/evas/evas-vg-batman.c
+++ b/src/examples/evas/evas-vg-batman.c
@@ -133,7 +133,7 @@ main(void)
133 133
134 for (i = 0; i < sizeof (batmans_path) / sizeof (batmans_path[0]); i++) 134 for (i = 0; i < sizeof (batmans_path) / sizeof (batmans_path[0]); i++)
135 { 135 {
136 batmans_vg[i] = evas_vg_shape_add(NULL); 136 batmans_vg[i] = evas_vg_shape_add(vg);
137 evas_vg_node_color_set(batmans_vg[i], 0, 0, 0, 255); 137 evas_vg_node_color_set(batmans_vg[i], 0, 0, 0, 255);
138 evas_vg_shape_stroke_color_set(batmans_vg[i], 128, 10,10, 128); 138 evas_vg_shape_stroke_color_set(batmans_vg[i], 128, 10,10, 128);
139 evas_vg_shape_stroke_width_set(batmans_vg[i], 4.0); 139 evas_vg_shape_stroke_width_set(batmans_vg[i], 4.0);
@@ -150,7 +150,7 @@ main(void)
150 150
151 animation = ecore_animator_timeline_add(1, _animator, NULL); 151 animation = ecore_animator_timeline_add(1, _animator, NULL);
152 152
153 root = evas_vg_container_add(NULL); 153 root = evas_vg_container_add(vg);
154 154
155 evas_object_vg_root_node_set(vg, root); 155 evas_object_vg_root_node_set(vg, root);
156 156
@@ -159,7 +159,6 @@ main(void)
159 eina_matrix3_scale(&matrix, 1.1, 1.1); 159 eina_matrix3_scale(&matrix, 1.1, 1.1);
160 evas_vg_node_transformation_set(root, &matrix); 160 evas_vg_node_transformation_set(root, &matrix);
161 161
162
163 circle = evas_vg_shape_add(root); 162 circle = evas_vg_shape_add(root);
164 evas_vg_shape_append_circle(circle, WIDTH / 2, HEIGHT / 2, 200); 163 evas_vg_shape_append_circle(circle, WIDTH / 2, HEIGHT / 2, 200);
165 evas_vg_node_color_set(circle, 255, 255, 255, 255); 164 evas_vg_node_color_set(circle, 255, 255, 255, 255);