IPHONE: Adapt to setPalette/grabPalette RGBA->RGB change.

This change is not tested, but should hopefully work fine.
This commit is contained in:
Johannes Schickel 2011-02-15 23:49:49 +01:00
parent a02454644a
commit 3c968128ea

View file

@ -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;
}
}