mirror of https://github.com/AxioDL/zeus.git
MSVC build fix for COLOR macro
This commit is contained in:
parent
f3630be9de
commit
6e865b656a
|
@ -18,8 +18,8 @@
|
||||||
|
|
||||||
#if BYTE_ORDER == __ORDER_LITTLE_ENDIAN__
|
#if BYTE_ORDER == __ORDER_LITTLE_ENDIAN__
|
||||||
#define COLOR(rgba) \
|
#define COLOR(rgba) \
|
||||||
(unsigned)(((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) rgba
|
||||||
#endif
|
#endif
|
||||||
|
@ -351,4 +351,4 @@ struct hash<zeus::CColor> {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue