summaryrefslogtreecommitdiff
path: root/unsorted/evas/evas-3d-cube2.c
diff options
context:
space:
mode:
Diffstat (limited to 'unsorted/evas/evas-3d-cube2.c')
-rw-r--r--unsorted/evas/evas-3d-cube2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/unsorted/evas/evas-3d-cube2.c b/unsorted/evas/evas-3d-cube2.c
index 0392c95..f581d93 100644
--- a/unsorted/evas/evas-3d-cube2.c
+++ b/unsorted/evas/evas-3d-cube2.c
@@ -78,8 +78,8 @@ _on_canvas_resize(Ecore_Evas *ee)
78 int w, h; 78 int w, h;
79 79
80 ecore_evas_geometry_get(ee, NULL, NULL, &w, &h); 80 ecore_evas_geometry_get(ee, NULL, NULL, &w, &h);
81 efl_gfx_size_set(background, w, h); 81 efl_gfx_size_set(background, EINA_SIZE2D(w, h));
82 efl_gfx_size_set(image, w, h); 82 efl_gfx_size_set(image, EINA_SIZE2D(w, h));
83} 83}
84 84
85static Eina_Bool 85static Eina_Bool
@@ -235,12 +235,12 @@ main(void)
235 /* Add a background rectangle object. */ 235 /* Add a background rectangle object. */
236 background = efl_add(EFL_CANVAS_RECTANGLE_CLASS, evas); 236 background = efl_add(EFL_CANVAS_RECTANGLE_CLASS, evas);
237 efl_gfx_color_set(background, 0, 0, 0, 255); 237 efl_gfx_color_set(background, 0, 0, 0, 255);
238 efl_gfx_size_set(background, WIDTH, HEIGHT); 238 efl_gfx_size_set(background, EINA_SIZE2D(WIDTH, HEIGHT));
239 efl_gfx_visible_set(background, EINA_TRUE); 239 efl_gfx_visible_set(background, EINA_TRUE);
240 240
241 /* Add an image object for 3D scene rendering. */ 241 /* Add an image object for 3D scene rendering. */
242 image = efl_add(EFL_CANVAS_SCENE3D_CLASS, evas); 242 image = efl_add(EFL_CANVAS_SCENE3D_CLASS, evas);
243 efl_gfx_size_set(image, WIDTH, HEIGHT); 243 efl_gfx_size_set(image, EINA_SIZE2D(WIDTH, HEIGHT));
244 efl_gfx_visible_set(image, EINA_TRUE); 244 efl_gfx_visible_set(image, EINA_TRUE);
245 245
246 /* Set the image object as render target for 3D scene. */ 246 /* Set the image object as render target for 3D scene. */