aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/zvision/render_table.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/engines/zvision/render_table.cpp b/engines/zvision/render_table.cpp
index dc5ebdb791..19f95a5d8f 100644
--- a/engines/zvision/render_table.cpp
+++ b/engines/zvision/render_table.cpp
@@ -113,12 +113,6 @@ void RenderTable::mutateImage(uint16 *sourceBuffer, uint16* destBuffer, uint32 d
// RenderTable only stores offsets from the original coordinates
uint32 sourceYIndex = y + _internalBuffer[index].y;
uint32 sourceXIndex = x + _internalBuffer[index].x;
-
- // Clamp the yIndex to the size of the image
- sourceYIndex = CLIP<uint32>(sourceYIndex, 0, _numRows - 1);
-
- // Clamp the xIndex to the size of the image
- sourceXIndex = CLIP<uint32>(sourceXIndex, 0, _numColumns - 1);
destBuffer[destOffset + normalizedX] = sourceBuffer[sourceYIndex * _numColumns + sourceXIndex];
}