mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-31 07:53:36 +00:00
GRAPHICS: Added BE/LE to TS_ macros
This commit is contained in:
parent
2d9d23adde
commit
89d789b122
@ -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 {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user