GRAPHICS: Added BE/LE to TS_ macros

This commit is contained in:
Eugene Sandulenko 2014-06-21 11:53:14 +03:00
parent 2d9d23adde
commit 89d789b122

View File

@ -35,9 +35,13 @@
*
*/
// TODO: Find a better solution for this.
#define TS_RGB(R,G,B) (((R) << 24) | ((G) << 16) | (B << 8) | (A)
#ifdef SCUMM_LITTLE_ENDIAN
#define TS_RGB(R,G,B) ((0xff << 24) | ((R) << 16) | ((G) << 8) | (B))
#define TS_ARGB(A,R,G,B) (((R) << 24) | ((G) << 16) | ((B) << 8) | (A))
#else
#define TS_RGB(R,G,B) (((R) << 24) | ((G) << 16) | (B << 8) | 0xff)
#define TS_ARGB(A,R,G,B) (((R) << 24) | ((G) << 16) | ((B) << 8) | (A))
#endif
namespace Graphics {