Skip to content

Commit

Permalink
Fix Rgb565Color memory packing
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy-JL committed Mar 8, 2024
1 parent 537fd8d commit 3ba5198
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/toolbox/colors.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3ba5198

Please sign in to comment.