mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
fix(rlottie): fix variable name (#2971)
Couldn't compile because 'c': undeclared identifier error
This commit is contained in:
parent
9b1335c622
commit
8bbbdf7c07
@ -211,7 +211,7 @@ static void convert_to_rgba5658(uint32_t * pix, const size_t width, const size_t
|
||||
uint16_t r = (uint16_t)(((in & 0xF80000) >> 8) | ((in & 0xFC00) >> 5) | ((in & 0xFF) >> 3));
|
||||
#else
|
||||
/* We want: rrrr rrrr GGGg gggg bbbb bbbb => gggb bbbb rrrr rGGG */
|
||||
uint16_t r = (uint16_t)(((c & 0xF80000) >> 16) | ((c & 0xFC00) >> 13) | ((c & 0x1C00) << 3) | ((c & 0xF8) << 5));
|
||||
uint16_t r = (uint16_t)(((in & 0xF80000) >> 16) | ((in & 0xFC00) >> 13) | ((in & 0x1C00) << 3) | ((in & 0xF8) << 5));
|
||||
#endif
|
||||
|
||||
lv_memcpy(dest, &r, sizeof(r));
|
||||
|
Loading…
x
Reference in New Issue
Block a user