diff options
author | richiesams | 2013-08-17 20:36:46 -0500 |
---|---|---|
committer | richiesams | 2013-08-18 19:52:58 -0500 |
commit | eafd6608cf1e54bb3551671e6fd4a8c6626d44d9 (patch) | |
tree | 97190a4881dff138c96a403bc1380e190298ef1e /engines/zvision | |
parent | 77219705e6f225c4296b5d5346b2abd8fe2aaade (diff) | |
download | scummvm-rg350-eafd6608cf1e54bb3551671e6fd4a8c6626d44d9.tar.gz scummvm-rg350-eafd6608cf1e54bb3551671e6fd4a8c6626d44d9.tar.bz2 scummvm-rg350-eafd6608cf1e54bb3551671e6fd4a8c6626d44d9.zip |
ZVISION: Change the CLIP template argument to match the type of the indicies
Diffstat (limited to 'engines/zvision')
-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 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) { |