diff --git a/src/misc/lv_color.h b/src/misc/lv_color.h index 4d6a04b2e..fffd7dabd 100644 --- a/src/misc/lv_color.h +++ b/src/misc/lv_color.h @@ -142,7 +142,7 @@ enum { # define LV_COLOR_GET_B8(c) (c).ch.blue # define LV_COLOR_GET_A8(c) 0xFF -# define _LV_COLOR_ZERO_INITIALIZER8 _LV_COLOR_MAKE_TYPE_HELPER {{0x00, 0x00, 0x00}} +# define _LV_COLOR_ZERO_INITIALIZER8 {{0x00, 0x00, 0x00}} # define LV_COLOR_MAKE8(r8, g8, b8) {{(uint8_t)((b8 >> 6) & 0x3U), (uint8_t)((g8 >> 5) & 0x7U), (uint8_t)((r8 >> 5) & 0x7U)}} # define LV_COLOR_SET_R16(c, v) (c).ch.red = (uint8_t)((v) & 0x1FU)