ft2-clone

Fasttracker 2 clone
Log | Files | Refs | README | LICENSE

commit 4dbde94aaa9d94f285aedc327a02cb12f422b791
parent 14013d2165f62675cf9de255ff734b509ff03325
Author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
Date:   Sat, 24 Jul 2021 01:54:54 +0200

pack pal16_t (otherwise crashes on Plan 9)

Diffstat:
Msrc/ft2_palette.h | 13++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/src/ft2_palette.h b/src/ft2_palette.h @@ -44,10 +44,21 @@ enum PAL_NUM }; +#ifdef _MSC_VER +#pragma pack(push) +#pragma pack(1) +#endif typedef struct pal16_t { uint8_t r, g, b; -} pal16; +} +#ifdef __GNUC__ +__attribute__ ((packed)) +#endif +pal16; +#ifdef _MSC_VER +#pragma pack(pop) +#endif void setCustomPalColor(uint32_t color);