fix(color) remove extraneous _LV_COLOR_MAKE_TYPE_HELPER (#2372)

This updates it to match the other `LV_COLOR_MAKEXX` (where XX is the color depth) lines.
This commit is contained in:
embeddedt
2021-07-15 11:57:30 -04:00
committed by Gabor Kiss-Vamosi
parent 31d49d1527
commit 7f7b9670d9

View File

@@ -143,7 +143,7 @@ enum {
# define LV_COLOR_GET_A8(c) 0xFF
# define _LV_COLOR_ZERO_INITIALIZER8 _LV_COLOR_MAKE_TYPE_HELPER {{0x00, 0x00, 0x00}}
# define LV_COLOR_MAKE8(r8, g8, b8) _LV_COLOR_MAKE_TYPE_HELPER {{(uint8_t)((b8 >> 6) & 0x3U), (uint8_t)((g8 >> 5) & 0x7U), (uint8_t)((r8 >> 5) & 0x7U)}}
# 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)
#if LV_COLOR_16_SWAP == 0