diff options
author | RichieSams | 2013-09-22 15:11:38 -0500 |
---|---|---|
committer | RichieSams | 2013-09-22 15:11:38 -0500 |
commit | 9fefed67f420b2097d43592850947144b2630b3d (patch) | |
tree | e14faf98aab12dec4d078724bc4aa697ef9e7c79 | |
parent | 79573d0331b108162149f00f47b208376be2b8a5 (diff) | |
download | scummvm-rg350-9fefed67f420b2097d43592850947144b2630b3d.tar.gz scummvm-rg350-9fefed67f420b2097d43592850947144b2630b3d.tar.bz2 scummvm-rg350-9fefed67f420b2097d43592850947144b2630b3d.zip |
ZVISION: Fix signed/unsigned mismatch
-rw-r--r-- | engines/zvision/render_table.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/zvision/render_table.cpp b/engines/zvision/render_table.cpp index 5eb208eb8c..dc5ebdb791 100644 --- a/engines/zvision/render_table.cpp +++ b/engines/zvision/render_table.cpp @@ -103,10 +103,10 @@ uint16 mixTwoRGB(uint16 colorOne, uint16 colorTwo, float percentColorOne) { void RenderTable::mutateImage(uint16 *sourceBuffer, uint16* destBuffer, uint32 destWidth, const Common::Rect &subRect) { uint32 destOffset = 0; - for (uint32 y = subRect.top; y < subRect.bottom; y++) { + for (int16 y = subRect.top; y < subRect.bottom; y++) { uint32 sourceOffset = y * _numColumns; - for (uint32 x = subRect.left; x < subRect.right; x++) { + for (int16 x = subRect.left; x < subRect.right; x++) { uint32 normalizedX = x - subRect.left; uint32 index = sourceOffset + x; |