summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2019-10-03 12:12:38 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-10-03 12:12:38 +0200
commit0a23c904cbfd702d52e2cab260b40ad06d6b0f58 (patch)
tree1ecd763688ca593954f46b798d0cb57c780aec59
parent6dfa4bac1dbebac00fc5fef44b3d82e33ad57ca7 (diff)
Game of Life: Remove last uses of Legacy API
-rw-r--r--apps/c/life/src/life_main.c6
-rw-r--r--apps/c/life/src/life_render.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/apps/c/life/src/life_main.c b/apps/c/life/src/life_main.c
index 93728cf..0a754fb 100644
--- a/apps/c/life/src/life_main.c
+++ b/apps/c/life/src/life_main.c
@@ -51,12 +51,12 @@ _life_win_key_down(void *data EINA_UNUSED, const Efl_Event *event)
51 life_board_pause_toggle(win); 51 life_board_pause_toggle(win);
52} 52}
53 53
54static Evas_Object * 54static Efl_Ui_Win *
55_life_win_setup(void) 55_life_win_setup(void)
56{ 56{
57 Efl_Ui_Win *win; 57 Efl_Ui_Win *win;
58 Evas_Coord w; 58 int w;
59 Evas_Coord h; 59 int h;
60 60
61 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 61 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(),
62 efl_ui_win_type_set(efl_added, EFL_UI_WIN_TYPE_BASIC), 62 efl_ui_win_type_set(efl_added, EFL_UI_WIN_TYPE_BASIC),
diff --git a/apps/c/life/src/life_render.c b/apps/c/life/src/life_render.c
index 32777f3..f5bafac 100644
--- a/apps/c/life/src/life_render.c
+++ b/apps/c/life/src/life_render.c
@@ -46,7 +46,7 @@ life_render_layout(Efl_Ui_Win *win)
46{ 46{
47 Eina_Size2D size; 47 Eina_Size2D size;
48 double cw, ch; 48 double cw, ch;
49 Evas_Object *rect; 49 Efl_Canvas_Rectangle *rect;
50 int x, y; 50 int x, y;
51 51
52 size = efl_gfx_entity_size_get(win); 52 size = efl_gfx_entity_size_get(win);
@@ -67,7 +67,7 @@ life_render_layout(Efl_Ui_Win *win)
67void 67void
68life_render_cell(Efl_Ui_Win *win EINA_UNUSED, int x, int y) 68life_render_cell(Efl_Ui_Win *win EINA_UNUSED, int x, int y)
69{ 69{
70 Evas_Object *rect; 70 Efl_Canvas_Rectangle *rect;
71 int i; 71 int i;
72 72
73 i = life_render_index_for_position(x, y); 73 i = life_render_index_for_position(x, y);