Update lv_color.h

This commit is contained in:
Deon Marais
2020-01-30 15:00:42 +02:00
committed by GitHub
parent 708d68eac1
commit 6fbc9f3400

View File

@@ -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
#endif
}
static inline uint32_t lv_color_to32(lv_color_t color)