aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/zvision/render_table.cpp4
1 files 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<int32>(sourceYIndex, 0, imageHeight - 1);
+ sourceYIndex = CLIP<int16>(sourceYIndex, 0, imageHeight - 1);
// Clamp the xIndex to the size of the image
- sourceXIndex = CLIP<int32>(sourceXIndex, 0, imageWidth - 1);
+ sourceXIndex = CLIP<int16>(sourceXIndex, 0, imageWidth - 1);
}
if (isTransposed) {