1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

Merge pull request #1245 from cpegeo/dev-6.1

lv_color1_t: Add 'ch' struct to union to fix 1bit color compilation error
This commit is contained in:
Gabor Kiss-Vamosi 2019-10-31 06:33:08 +01:00 committed by GitHub
commit 0f1e5fba16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,10 +96,13 @@ enum {
typedef union
{
uint8_t blue : 1;
uint8_t green : 1;
uint8_t red : 1;
uint8_t full : 1;
struct
{
uint8_t blue : 1;
uint8_t green : 1;
uint8_t red : 1;
} ch;
uint8_t full;
} lv_color1_t;
typedef union