From ceae3dd191039711ea388e2878397d26a0932611 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 19 Feb 2012 22:16:38 +0100 Subject: IPHONE: Rename _palette to _gamePalette. --- backends/platform/iphone/osys_main.h | 2 +- backends/platform/iphone/osys_video.cpp | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'backends') 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 >(b[0], b[1], b[2]); + _gamePalette[i] = Graphics::RGBToColor >(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 >(_palette[i], b[0], b[1], b[2]); + Graphics::colorToRGB >(_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; } -- cgit v1.2.3