From eafd6608cf1e54bb3551671e6fd4a8c6626d44d9 Mon Sep 17 00:00:00 2001 From: richiesams Date: Sat, 17 Aug 2013 20:36:46 -0500 Subject: ZVISION: Change the CLIP template argument to match the type of the indicies --- 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 ec0cdba7c2..0a8175e54e 100644 --- a/engines/zvision/render_table.cpp +++ b/engines/zvision/render_table.cpp @@ -129,10 +129,10 @@ void RenderTable::mutateImage(uint16 *sourceBuffer, uint16* destBuffer, int16 im } } else { // Clamp the yIndex to the size of the image - sourceYIndex = CLIP(sourceYIndex, 0, imageHeight - 1); + sourceYIndex = CLIP(sourceYIndex, 0, imageHeight - 1); // Clamp the xIndex to the size of the image - sourceXIndex = CLIP(sourceXIndex, 0, imageWidth - 1); + sourceXIndex = CLIP(sourceXIndex, 0, imageWidth - 1); } if (isTransposed) { -- cgit v1.2.3