summaryrefslogtreecommitdiff
path: root/src/examples/evas/evas-3d-aabb.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-09-15 18:37:25 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-09-18 13:34:50 +0900
commit4c634ed78e0b298f916e4c79a7e222100d0085d2 (patch)
tree9fa8b385d3d8c2445ea94c839fdc38a30eb36f7d /src/examples/evas/evas-3d-aabb.c
parent8fb194d969ccb9227e56ea60f538d977393408d7 (diff)
efl: Use Eina.Size2D for Efl.Gfx.size
Big patch as a lot of things call or reimplement size_set. Hopefully I got it right... fingers crossed.
Diffstat (limited to 'src/examples/evas/evas-3d-aabb.c')
-rw-r--r--src/examples/evas/evas-3d-aabb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/examples/evas/evas-3d-aabb.c b/src/examples/evas/evas-3d-aabb.c
index 37f954d..fac73ad 100644
--- a/src/examples/evas/evas-3d-aabb.c
+++ b/src/examples/evas/evas-3d-aabb.c
@@ -110,8 +110,8 @@ _on_canvas_resize(Ecore_Evas *ee)
110 int w, h; 110 int w, h;
111 111
112 ecore_evas_geometry_get(ee, NULL, NULL, &w, &h); 112 ecore_evas_geometry_get(ee, NULL, NULL, &w, &h);
113 efl_gfx_size_set(background, w, h); 113 efl_gfx_size_set(background, EINA_SIZE2D(w, h));
114 efl_gfx_size_set(image, w, h); 114 efl_gfx_size_set(image, EINA_SIZE2D(w, h));
115} 115}
116 116
117static Eina_Bool 117static Eina_Bool
@@ -216,11 +216,11 @@ main(void)
216 216
217 background = efl_add(EFL_CANVAS_RECTANGLE_CLASS, evas); 217 background = efl_add(EFL_CANVAS_RECTANGLE_CLASS, evas);
218 efl_gfx_color_set(background, 0, 0, 0, 255); 218 efl_gfx_color_set(background, 0, 0, 0, 255);
219 efl_gfx_size_set(background, WIDTH, HEIGHT); 219 efl_gfx_size_set(background, EINA_SIZE2D(WIDTH, HEIGHT));
220 efl_gfx_visible_set(background, EINA_TRUE); 220 efl_gfx_visible_set(background, EINA_TRUE);
221 221
222 image = efl_add(EFL_CANVAS_SCENE3D_CLASS, evas); 222 image = efl_add(EFL_CANVAS_SCENE3D_CLASS, evas);
223 efl_gfx_size_set(image, WIDTH, HEIGHT); 223 efl_gfx_size_set(image, EINA_SIZE2D(WIDTH, HEIGHT));
224 efl_gfx_visible_set(image, EINA_TRUE); 224 efl_gfx_visible_set(image, EINA_TRUE);
225 evas_object_focus_set(image, EINA_TRUE); 225 evas_object_focus_set(image, EINA_TRUE);
226 efl_canvas_scene3d_set(image, scene); 226 efl_canvas_scene3d_set(image, scene);