diff options
author | Fabio Battaglia | 2009-12-30 21:11:38 +0000 |
---|---|---|
committer | Fabio Battaglia | 2009-12-30 21:11:38 +0000 |
commit | a108df30a753bc062d2e2c041c70a4477f08b671 (patch) | |
tree | 13e38c42b014fa280f3a1be3aa950754dca3837e /graphics/colormasks.h | |
parent | 0de5bac3498e9e9d158e4055c08475e04a00e7b3 (diff) | |
download | scummvm-rg350-a108df30a753bc062d2e2c041c70a4477f08b671.tar.gz scummvm-rg350-a108df30a753bc062d2e2c041c70a4477f08b671.tar.bz2 scummvm-rg350-a108df30a753bc062d2e2c041c70a4477f08b671.zip |
Add Nintendo 64 port to trunk.
svn-id: r46773
Diffstat (limited to 'graphics/colormasks.h')
-rw-r--r-- | graphics/colormasks.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/graphics/colormasks.h b/graphics/colormasks.h index e14b32251e..b6cd9dcee4 100644 --- a/graphics/colormasks.h +++ b/graphics/colormasks.h @@ -117,10 +117,17 @@ struct ColorMasks<555> { kGreenBits = 5, kBlueBits = 5, +#ifdef __N64__ + kAlphaShift = 0, + kRedShift = kBlueBits+kGreenBits+1, + kGreenShift = kBlueBits + 1, + kBlueShift = 1, +#else kAlphaShift = 0, kRedShift = kGreenBits+kBlueBits, kGreenShift = kBlueBits, kBlueShift = 0, +#endif kAlphaMask = ((1 << kAlphaBits) - 1) << kAlphaShift, kRedMask = ((1 << kRedBits) - 1) << kRedShift, |