Skip to content

Commit

Permalink
lv_color_mix_with_alpha: fix initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
kisvegabor committed May 25, 2020
1 parent b4de4c5 commit 966b4b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lv_misc/lv_color.h
Expand Up @@ -534,9 +534,9 @@ LV_ATTRIBUTE_FAST_MEM static inline void lv_color_mix_with_alpha(lv_color_t bg_c
/*Save the parameters and the result. If they will be asked again don't compute again*/
static lv_opa_t fg_opa_save = 0;
static lv_opa_t bg_opa_save = 0;
static lv_color_t fg_color_save = {{0}};
static lv_color_t bg_color_save = {{0}};
static lv_color_t res_color_saved = {{0}};
static lv_color_t fg_color_save = {.full = 0};
static lv_color_t bg_color_save = {.full = 0};
static lv_color_t res_color_saved = {.full = 0};
static lv_opa_t res_opa_saved = 0;

if(fg_opa != fg_opa_save || bg_opa != bg_opa_save || fg_color.full != fg_color_save.full ||
Expand Down

0 comments on commit 966b4b1

Please sign in to comment.