expedite ui - stop using invalid argb values
This commit is contained in:
parent
525879533a
commit
4ab2935364
|
@ -588,6 +588,8 @@ ui_loop(void *data EINA_UNUSED)
|
|||
a = menu_anim - (double)i;
|
||||
if (a < 0) a = -a;
|
||||
a = 255 - (30 * a);
|
||||
if (a < 0) a = 0;
|
||||
if (a > 255) a = 255;
|
||||
efl_gfx_color_set(o, a, a, a, a);
|
||||
efl_gfx_visible_set(o, EINA_TRUE);
|
||||
|
||||
|
@ -596,6 +598,8 @@ ui_loop(void *data EINA_UNUSED)
|
|||
a = menu_anim - (double)i;
|
||||
if (a < 0) a = -a;
|
||||
a = 255 - (255 * a);
|
||||
if (a < 0) a = 0;
|
||||
if (a > 255) a = 255;
|
||||
|
||||
o = o_menu_icon_sel;
|
||||
efl_gfx_position_set(o, x - ((48 - w) / 2), y - ((48 - h) / 2));
|
||||
|
|
Loading…
Reference in New Issue