From 3da868a0905ccbdafb4bbbf9c301d4f66eb2cf86 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 4f994e2ef..f2aadccaa 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