diff options
author | Johannes Schickel | 2011-02-15 23:49:49 +0100 |
---|---|---|
committer | Johannes Schickel | 2011-02-15 23:57:10 +0100 |
commit | 3c968128ea82166d4fe1672f00d25c6aa36417f6 (patch) | |
tree | 0e1dca1941d3cd58f1095cace7795917696dfd49 | |
parent | a02454644af514c4f50b861cc718e2951d4c46dd (diff) | |
download | scummvm-rg350-3c968128ea82166d4fe1672f00d25c6aa36417f6.tar.gz scummvm-rg350-3c968128ea82166d4fe1672f00d25c6aa36417f6.tar.bz2 scummvm-rg350-3c968128ea82166d4fe1672f00d25c6aa36417f6.zip |
IPHONE: Adapt to setPalette/grabPalette RGBA->RGB change.
This change is not tested, but should hopefully work fine.
-rw-r--r-- | backends/platform/iphone/osys_video.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/platform/iphone/osys_video.cpp b/backends/platform/iphone/osys_video.cpp index ee27e4d87c..8de99ea242 100644 --- a/backends/platform/iphone/osys_video.cpp +++ b/backends/platform/iphone/osys_video.cpp @@ -102,7 +102,7 @@ void OSystem_IPHONE::setPalette(const byte *colors, uint start, uint num) { for (uint i = start; i < start + num; ++i) { _palette[i] = Graphics::RGBToColor<Graphics::ColorMasks<565> >(b[0], b[1], b[2]); - b += 4; + b += 3; } dirtyFullScreen(); @@ -115,7 +115,7 @@ void OSystem_IPHONE::grabPalette(byte *colors, uint start, uint num) { for (uint i = start; i < start + num; ++i) { Graphics::colorToRGB<Graphics::ColorMasks<565> >(_palette[i], b[0], b[1], b[2]); b[3] = 0xFF; - b += 4; + b += 3; } } |