mirror of
https://github.com/AxioDL/zeus.git
synced 2025-06-21 22:13:37 +00:00
CColor: Fix COLOR macro (again)
This commit is contained in:
parent
6e865b656a
commit
ec125acf29
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user