mirror of https://github.com/AxioDL/zeus.git
CColor: Fix COLOR macro (again)
This commit is contained in:
parent
6e865b656a
commit
ec125acf29
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue