SDL2
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
*====================*/
|
||||
|
||||
/*Color depth: 1 (1 byte per pixel), 8 (RGB332), 16 (RGB565), 32 (ARGB8888)*/
|
||||
#define LV_COLOR_DEPTH 32
|
||||
#define LV_COLOR_DEPTH 16
|
||||
|
||||
/*Swap the 2 bytes of RGB565 color. Useful if the display has an 8-bit interface (e.g. SPI)*/
|
||||
#define LV_COLOR_16_SWAP 0
|
||||
|
@@ -166,7 +166,7 @@ void colortorgb24(lv_color_t* color_p, uint32_t* color, size_t len)
|
||||
{
|
||||
while (len)
|
||||
{
|
||||
*color = (uint32_t)RGB(color_p->ch.red, color_p->ch.green, color_p->ch.blue) | (color_p->ch.alpha << 24);
|
||||
*color = RGB565_to_RGB888(color_p->full, false);
|
||||
color_p++;
|
||||
color++;
|
||||
len--;
|
||||
|
Reference in New Issue
Block a user