mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-06 10:17:14 +00:00
ZVISION: Change the CLIP template argument to match the type of the indicies
This commit is contained in:
parent
77219705e6
commit
eafd6608cf
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user