Skip to content

Commit

Permalink
GRAPHICS: Added BE/LE to TS_ macros
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Jun 23, 2014
1 parent 2d9d23a commit 89d789b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions graphics/transparent_surface.h
Expand Up @@ -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 {

Expand Down

0 comments on commit 89d789b

Please sign in to comment.