mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Fix Rgb565Color memory packing
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user