CColor: Fix COLOR macro (again)

This commit is contained in:
Luke Street 2021-10-25 22:54:47 -04:00
parent 6e865b656a
commit ec125acf29

View File

@ -16,12 +16,12 @@
#undef min #undef min
#undef max #undef max
#if BYTE_ORDER == __ORDER_LITTLE_ENDIAN__ #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#define COLOR(rgba) \ #define COLOR(rgba) \
(zeus::Comp32)(((rgba)&0x000000FF) << 24 | ((rgba)&0x0000FF00) << 8 | ((rgba)&0x00FF0000) >> 8 | \ (zeus::Comp32)(((rgba)&0x000000FF) << 24 | ((rgba)&0x0000FF00) << 8 | ((rgba)&0x00FF0000) >> 8 | \
((rgba)&0xFF000000) >> 24) ((rgba)&0xFF000000) >> 24)
#else #else
#define COLOR(rgba) rgba #define COLOR(rgba) (zeus::Comp32)(rgba)
#endif #endif
namespace zeus { namespace zeus {