IPHONE: Adapt to setPalette/grabPalette RGBA->RGB change.
This change is not tested, but should hopefully work fine.
This commit is contained in:
parent
a02454644a
commit
3c968128ea
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue