MSVC build fix for COLOR macro

This commit is contained in:
Luke Street 2021-10-25 19:17:25 -04:00
parent f3630be9de
commit 6e865b656a
1 changed files with 3 additions and 3 deletions

View File

@ -18,8 +18,8 @@
#if BYTE_ORDER == __ORDER_LITTLE_ENDIAN__
#define COLOR(rgba) \
(unsigned)(((rgba)&0x000000FF) << 24 | ((rgba)&0x0000FF00) << 8 | ((rgba)&0x00FF0000) >> 8 | \
((rgba)&0xFF000000) >> 24)
(zeus::Comp32)(((rgba)&0x000000FF) << 24 | ((rgba)&0x0000FF00) << 8 | ((rgba)&0x00FF0000) >> 8 | \
((rgba)&0xFF000000) >> 24)
#else
#define COLOR(rgba) rgba
#endif
@ -351,4 +351,4 @@ struct hash<zeus::CColor> {
return ret;
}
};
}
}