CColor: Fix COLOR macro (again)

This commit is contained in:
Luke Street 2021-10-25 22:54:47 -04:00
parent 6e865b656a
commit ec125acf29
1 changed files with 2 additions and 2 deletions

View File

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