Skip to content

Commit

Permalink
Fix textures on big-endian systems.
Browse files Browse the repository at this point in the history
We must not forget our PowerPC comrades
  • Loading branch information
UnknownShadow200 committed Oct 7, 2019
1 parent 80ee35f commit 955cfd1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Bitmap.h
Expand Up @@ -13,6 +13,11 @@ typedef cc_uint32 BitmapCol;
#define BITMAPCOL_G_SHIFT 8
#define BITMAPCOL_B_SHIFT 16
#define BITMAPCOL_A_SHIFT 24
#elif defined CC_BIG_ENDIAN
#define BITMAPCOL_A_SHIFT 0
#define BITMAPCOL_R_SHIFT 8
#define BITMAPCOL_G_SHIFT 16
#define BITMAPCOL_B_SHIFT 24
#else
#define BITMAPCOL_B_SHIFT 0
#define BITMAPCOL_G_SHIFT 8
Expand Down

0 comments on commit 955cfd1

Please sign in to comment.