1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-12-11 13:04:35 +00:00

🩹 Fix TFT image packing

This commit is contained in:
Scott Lahteine 2022-07-22 21:46:38 -05:00
parent 602e14704b
commit 32765c600a

View File

@ -114,7 +114,13 @@ enum colorMode_t : uint8_t {
typedef colorMode_t ColorMode;
typedef struct __attribute__((__packed__)) {
#ifdef __AVR__
#define IMG_PACKED __attribute__((__packed__))
#else
#define IMG_PACKED
#endif
typedef struct IMG_PACKED {
void *data;
uint16_t width;
uint16_t height;