diff options
author | Joost Peters | 2009-02-18 13:28:52 +0000 |
---|---|---|
committer | Joost Peters | 2009-02-18 13:28:52 +0000 |
commit | 22340b6c3d7f1376e33e5315ad0554a9a99333a5 (patch) | |
tree | 6566d7d9fb3da2d0f6962c1aabe52f223330bbdf /graphics/colormasks.h | |
parent | b9d3c752b16f9239fccac2f9c9474245f12fce10 (diff) | |
download | scummvm-rg350-22340b6c3d7f1376e33e5315ad0554a9a99333a5.tar.gz scummvm-rg350-22340b6c3d7f1376e33e5315ad0554a9a99333a5.tar.bz2 scummvm-rg350-22340b6c3d7f1376e33e5315ad0554a9a99333a5.zip |
Use 4444 overlay on PSP (instead of 1555).
svn-id: r38475
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 c7763add11..3b5a84a03e 100644 --- a/graphics/colormasks.h +++ b/graphics/colormasks.h @@ -169,10 +169,17 @@ struct ColorMasks<4444> { kGreenBits = 4, kBlueBits = 4, +#ifdef __PSP__ //PSP uses ABGR + kAlphaShift = kRedBits+kGreenBits+kBlueBits, + kRedShift = 0, + kGreenShift = kRedBits, + kBlueShift = kRedBits+kGreenBits, +#else //ARGB kAlphaShift = kRedBits+kGreenBits+kBlueBits, kRedShift = kGreenBits+kBlueBits, kGreenShift = kBlueBits, kBlueShift = 0, +#endif kAlphaMask = ((1 << kAlphaBits) - 1) << kAlphaShift, kRedMask = ((1 << kRedBits) - 1) << kRedShift, |