diff options
author | Strangerke | 2013-01-03 01:33:26 +0100 |
---|---|---|
committer | Strangerke | 2013-01-03 01:33:26 +0100 |
commit | 3ab4446a1ba6b60f149b10587cacaf4a8f33aedd (patch) | |
tree | a49905f3877083ed32aeb6b232d99d553ab1e426 /engines/hopkins/graphics.cpp | |
parent | a4b7b29157125ad6240888186dde70ac64ee6088 (diff) | |
download | scummvm-rg350-3ab4446a1ba6b60f149b10587cacaf4a8f33aedd.tar.gz scummvm-rg350-3ab4446a1ba6b60f149b10587cacaf4a8f33aedd.tar.bz2 scummvm-rg350-3ab4446a1ba6b60f149b10587cacaf4a8f33aedd.zip |
HOPKINS: Fix remaining GCC warnings (on behalf of Eriktorbjorn)
Diffstat (limited to 'engines/hopkins/graphics.cpp')
-rw-r--r-- | engines/hopkins/graphics.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/hopkins/graphics.cpp b/engines/hopkins/graphics.cpp index 0ea89b07bc..8650c06f5e 100644 --- a/engines/hopkins/graphics.cpp +++ b/engines/hopkins/graphics.cpp @@ -442,14 +442,14 @@ void GraphicsManager::m_scroll16(const byte *surface, int xs, int ys, int width, // TODO: See if PAL_PIXELS can be converted to a uint16 array void GraphicsManager::m_scroll16A(const byte *surface, int xs, int ys, int width, int height, int destX, int destY) { const byte *srcP; - const byte *destP; + byte *destP; int yNext; int xCtr; const byte *palette; int pixelWord; int yCtr; const byte *srcCopyP; - const byte *destCopyP; + byte *destCopyP; assert(_videoPtr); srcP = xs + _lineNbr2 * ys + surface; @@ -469,7 +469,7 @@ void GraphicsManager::m_scroll16A(const byte *surface, int xs, int ys, int width Agr_x = 0; do { - pixelWord = *(uint16 *)(palette + 2 * *srcP); + pixelWord = *(const uint16 *)(palette + 2 * *srcP); *(uint16 *)destP = pixelWord; ++srcP; destP += 2; @@ -508,7 +508,7 @@ void GraphicsManager::Copy_Vga16(const byte *surface, int xp, int yp, int width, int xCount; int xCtr; const byte *palette; - uint16 *tempSrcP; + const uint16 *tempSrcP; uint16 srcByte; uint16 *tempDestP; int savedXCount; @@ -531,7 +531,7 @@ void GraphicsManager::Copy_Vga16(const byte *surface, int xp, int yp, int width, palette = PAL_PIXELS; do { - tempSrcP = (uint16 *)(palette + 2 * *srcP); + tempSrcP = (const uint16 *)(palette + 2 * *srcP); srcByte = *tempSrcP; *destP = *tempSrcP; *(destP + 1) = srcByte; @@ -932,7 +932,7 @@ void GraphicsManager::Capture_Mem(const byte *srcSurface, byte *destSurface, int destP += width; } else if (width & 2) { for (i = width >> 1; i; --i) { - *(uint16 *)destP = *(uint16 *)srcP; + *(uint16 *)destP = *(const uint16 *)srcP; srcP += 2; destP += 2; } @@ -1302,7 +1302,7 @@ void GraphicsManager::Restore_Mem(byte *destSurface, const byte *src, int xp, in destP += width; } else if (width & 2) { for (i = width >> 1; i; --i) { - *(uint16 *)destP = *(uint16 *)srcP; + *(uint16 *)destP = *(const uint16 *)srcP; srcP += 2; destP += 2; } |