From 3758a82f3aa9113a3ba203e6ede091529f4406c8 Mon Sep 17 00:00:00 2001 From: George Slater Date: Wed, 30 Oct 2019 17:03:56 -0500 Subject: [PATCH] lv_color1_t: Add 'ch' struct to union to fix 1bit color compilation error. lv_color.h: Updated lv_color1_t union to include 'ch' structure. This fixes compilation errors when configured for 1bit color. --- src/lv_misc/lv_color.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/lv_misc/lv_color.h b/src/lv_misc/lv_color.h index 7f78d6119..78741b3a2 100644 --- a/src/lv_misc/lv_color.h +++ b/src/lv_misc/lv_color.h @@ -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