mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
Update lv_color.h
This commit is contained in:
parent
708d68eac1
commit
6fbc9f3400
@ -344,7 +344,6 @@ static inline uint8_t lv_color_to8(lv_color_t color)
|
||||
|
||||
static inline uint16_t lv_color_to16(lv_color_t color)
|
||||
{
|
||||
|
||||
#if LV_COLOR_DEPTH == 1
|
||||
if(color.full == 0)
|
||||
return 0;
|
||||
@ -373,10 +372,7 @@ static inline uint16_t lv_color_to16(lv_color_t color)
|
||||
#endif
|
||||
LV_COLOR_SET_B16(ret, LV_COLOR_GET_B(color) >> 3); /* 8 - 5 = 3*/
|
||||
return ret.full;
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
static inline uint32_t lv_color_to32(lv_color_t color)
|
||||
|
Loading…
x
Reference in New Issue
Block a user