From 9fefed67f420b2097d43592850947144b2630b3d Mon Sep 17 00:00:00 2001 From: RichieSams Date: Sun, 22 Sep 2013 15:11:38 -0500 Subject: ZVISION: Fix signed/unsigned mismatch --- engines/zvision/render_table.cpp | 4 ++-- 1 file 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; -- cgit v1.2.3