From 3ba5198bb662caa64df65db73646739c30dfcc4b Mon Sep 17 00:00:00 2001 From: Willy-JL <49810075+Willy-JL@users.noreply.github.com> Date: Fri, 8 Mar 2024 00:48:38 +0000 Subject: [PATCH] Fix Rgb565Color memory packing --- lib/toolbox/colors.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/toolbox/colors.h b/lib/toolbox/colors.h index 5bfa64539c..c76af31baa 100644 --- a/lib/toolbox/colors.h +++ b/lib/toolbox/colors.h @@ -28,10 +28,10 @@ void rgb2hsv(const RgbColor* rgb, HsvColor* hsv); typedef union { uint16_t value; struct { - uint8_t r : 5; - uint8_t g : 6; - uint8_t b : 5; - }; + uint16_t r : 5; + uint16_t g : 6; + uint16_t b : 5; + } FURI_PACKED; } Rgb565Color; int rgb565cmp(const Rgb565Color* a, const Rgb565Color* b);