diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2016-11-11 11:59:02 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2016-11-11 11:59:02 +0900 |
commit | 4ab293536480220f96201d21f93ba050388e78cb (patch) | |
tree | 55827d9fff9225dfa5d399e814b55c3c4e27f6be | |
parent | 525879533ad1ae9b7e4ae4857d08378636ccf2f1 (diff) |
expedite ui - stop using invalid argb values
-rw-r--r-- | src/bin/ui.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bin/ui.c b/src/bin/ui.c index cdb3a33..40e4124 100644 --- a/src/bin/ui.c +++ b/src/bin/ui.c | |||
@@ -588,6 +588,8 @@ ui_loop(void *data EINA_UNUSED) | |||
588 | a = menu_anim - (double)i; | 588 | a = menu_anim - (double)i; |
589 | if (a < 0) a = -a; | 589 | if (a < 0) a = -a; |
590 | a = 255 - (30 * a); | 590 | a = 255 - (30 * a); |
591 | if (a < 0) a = 0; | ||
592 | if (a > 255) a = 255; | ||
591 | efl_gfx_color_set(o, a, a, a, a); | 593 | efl_gfx_color_set(o, a, a, a, a); |
592 | efl_gfx_visible_set(o, EINA_TRUE); | 594 | efl_gfx_visible_set(o, EINA_TRUE); |
593 | 595 | ||
@@ -596,6 +598,8 @@ ui_loop(void *data EINA_UNUSED) | |||
596 | a = menu_anim - (double)i; | 598 | a = menu_anim - (double)i; |
597 | if (a < 0) a = -a; | 599 | if (a < 0) a = -a; |
598 | a = 255 - (255 * a); | 600 | a = 255 - (255 * a); |
601 | if (a < 0) a = 0; | ||
602 | if (a > 255) a = 255; | ||
599 | 603 | ||
600 | o = o_menu_icon_sel; | 604 | o = o_menu_icon_sel; |
601 | efl_gfx_position_set(o, x - ((48 - w) / 2), y - ((48 - h) / 2)); | 605 | efl_gfx_position_set(o, x - ((48 - w) / 2), y - ((48 - h) / 2)); |