diff options
author | Johannes Schickel | 2012-02-19 22:16:38 +0100 |
---|---|---|
committer | Johannes Schickel | 2012-02-19 22:16:38 +0100 |
commit | ceae3dd191039711ea388e2878397d26a0932611 (patch) | |
tree | 19d243e8ab62d92a905cb3430c681071d12c94ff /backends | |
parent | 6a31dadfea1d13970e7d0bb21f3a9b2287ff067d (diff) | |
download | scummvm-rg350-ceae3dd191039711ea388e2878397d26a0932611.tar.gz scummvm-rg350-ceae3dd191039711ea388e2878397d26a0932611.tar.bz2 scummvm-rg350-ceae3dd191039711ea388e2878397d26a0932611.zip |
IPHONE: Rename _palette to _gamePalette.
Diffstat (limited to 'backends')
-rw-r--r-- | backends/platform/iphone/osys_main.h | 2 | ||||
-rw-r--r-- | backends/platform/iphone/osys_video.cpp | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/backends/platform/iphone/osys_main.h b/backends/platform/iphone/osys_main.h index 993c1aab4c..b89eed9d43 100644 --- a/backends/platform/iphone/osys_main.h +++ b/backends/platform/iphone/osys_main.h @@ -70,7 +70,7 @@ protected: uint16 *_fullscreen; - uint16 _palette[256]; + uint16 _gamePalette[256]; bool _overlayVisible; uint16 _screenWidth; uint16 _screenHeight; diff --git a/backends/platform/iphone/osys_video.cpp b/backends/platform/iphone/osys_video.cpp index 8aabe4e6e9..c97b6757ea 100644 --- a/backends/platform/iphone/osys_video.cpp +++ b/backends/platform/iphone/osys_video.cpp @@ -98,7 +98,7 @@ void OSystem_IPHONE::setPalette(const byte *colors, uint start, uint num) { const byte *b = colors; for (uint i = start; i < start + num; ++i) { - _palette[i] = Graphics::RGBToColor<Graphics::ColorMasks<565> >(b[0], b[1], b[2]); + _gamePalette[i] = Graphics::RGBToColor<Graphics::ColorMasks<565> >(b[0], b[1], b[2]); b += 3; } @@ -110,7 +110,7 @@ void OSystem_IPHONE::grabPalette(byte *colors, uint start, uint num) { byte *b = colors; for (uint i = start; i < start + num; ++i) { - Graphics::colorToRGB<Graphics::ColorMasks<565> >(_palette[i], b[0], b[1], b[2]); + Graphics::colorToRGB<Graphics::ColorMasks<565> >(_gamePalette[i], b[0], b[1], b[2]); b += 3; } } @@ -256,7 +256,7 @@ void OSystem_IPHONE::drawDirtyRect(const Common::Rect &dirtyRect) { uint16 *dst = &_fullscreen[dirtyRect.top * _screenWidth + dirtyRect.left]; for (int y = h; y > 0; y--) { for (int x = w; x > 0; x--) - *dst++ = _palette[*src++]; + *dst++ = _gamePalette[*src++]; dst += _screenWidth - w; src += _screenWidth - w; @@ -310,7 +310,7 @@ void OSystem_IPHONE::drawMouseCursorOnRectUpdate(const Common::Rect &updatedRect for (int y = displayHeight; y > srcY; y--) { for (int x = displayWidth; x > srcX; x--) { if (*src != _mouseKeyColor) - *dst = _palette[*src]; + *dst = _gamePalette[*src]; dst++; src++; } @@ -473,7 +473,7 @@ void OSystem_IPHONE::setMouseCursor(const byte *buf, uint w, uint h, int hotspot for (uint y = 0; y < h; ++y) { byte color = buf[y * w + x]; if (color != keycolor) - mouseBuf[y * texWidth + x] = _palette[color] | 0x1; + mouseBuf[y * texWidth + x] = _gamePalette[color] | 0x1; else mouseBuf[y * texWidth + x] = 0x0; } |