summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@free.fr>2019-09-25 10:25:47 -0700
committerCedric Bail <cedric.bail@free.fr>2019-09-25 10:25:47 -0700
commit105e6568a4974fd86d11291a10cf615a13df43ed (patch)
treece21c5805cf66b8254d55f750072f7edd3375e7d
parentdc6c931dc2e6c240d3e240f24578980c689ab7fc (diff)
main: lookup for the right file thanks error warning in Efl!
-rw-r--r--src/bin/ui.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/bin/ui.c b/src/bin/ui.c
index d31d4a5..adaba18 100644
--- a/src/bin/ui.c
+++ b/src/bin/ui.c
@@ -12,7 +12,6 @@ static double t_start = 0.0;
12static double t_loop = 0.0; 12static double t_loop = 0.0;
13static int f_start = 0; 13static int f_start = 0;
14static int f_loop = 0; 14static int f_loop = 0;
15static char data_dir[4096];
16 15
17int async_render = 0; 16int async_render = 0;
18Eina_List *menu = NULL; 17Eina_List *menu = NULL;
@@ -568,7 +567,6 @@ ui_loop(void *data EINA_UNUSED)
568 tr = tt; 567 tr = tt;
569 EINA_LIST_FOREACH(menu, l, mi) 568 EINA_LIST_FOREACH(menu, l, mi)
570 { 569 {
571 char buf[4096];
572 Evas_Coord x, y, w, h, tw, th; 570 Evas_Coord x, y, w, h, tw, th;
573 Evas_Coord len; 571 Evas_Coord len;
574 double a; 572 double a;
@@ -624,8 +622,7 @@ ui_loop(void *data EINA_UNUSED)
624 efl_gfx_color_set(o, a, a, a, a); 622 efl_gfx_color_set(o, a, a, a, a);
625 623
626 o = o_menu_icon; 624 o = o_menu_icon;
627 snprintf(buf, 4096, "%s%s", data_dir, mi->icon); 625 efl_file_simple_load(o, build_path(mi->icon), NULL);
628 efl_file_simple_load(o, buf, NULL);
629 efl_gfx_color_set(o, a / 2, a / 2, a / 2, a / 2); 626 efl_gfx_color_set(o, a / 2, a / 2, a / 2, a / 2);
630 } 627 }
631 i++; 628 i++;