From 3c968128ea82166d4fe1672f00d25c6aa36417f6 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Tue, 15 Feb 2011 23:49:49 +0100 Subject: IPHONE: Adapt to setPalette/grabPalette RGBA->RGB change. This change is not tested, but should hopefully work fine. --- backends/platform/iphone/osys_video.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backends/platform/iphone') 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 >(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 >(_palette[i], b[0], b[1], b[2]); b[3] = 0xFF; - b += 4; + b += 3; } } -- cgit v1.2.3