fix(color) remove extraneous cast for 8-bit color
This brings it in line with the corresponding macros for other BPP values. This issue was found via CI added in the following commit.
This commit is contained in:
committed by
Gabor Kiss-Vamosi
parent
7bd924bd4d
commit
04bae5f006
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user