diff options
author | richiesams | 2013-08-11 16:39:21 -0500 |
---|---|---|
committer | richiesams | 2013-08-11 16:39:21 -0500 |
commit | 19a2a59c3cf9c9baf8d0366ab59d8a0ec2d0d7e4 (patch) | |
tree | 044ae493264e3593601775de4acea6e237ac7132 /engines/zvision | |
parent | a49b77cd799a081d04a14f8eeaf8e61b678507bf (diff) | |
download | scummvm-rg350-19a2a59c3cf9c9baf8d0366ab59d8a0ec2d0d7e4.tar.gz scummvm-rg350-19a2a59c3cf9c9baf8d0366ab59d8a0ec2d0d7e4.tar.bz2 scummvm-rg350-19a2a59c3cf9c9baf8d0366ab59d8a0ec2d0d7e4.zip |
ZVISION: Fix unsigned/signed mismatch
Diffstat (limited to 'engines/zvision')
-rw-r--r-- | engines/zvision/video.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/zvision/video.cpp b/engines/zvision/video.cpp index b3e32b7703..ca95a7e5f3 100644 --- a/engines/zvision/video.cpp +++ b/engines/zvision/video.cpp @@ -47,7 +47,7 @@ void scaleBuffer(const byte *src, byte *dst, uint32 srcWidth, uint32 srcHeight, for (uint32 x = 0; x < srcWidth; x++) { const byte color = *srcPtr++; - for (int i = 0; i < scaleAmount; i++) { + for (uint i = 0; i < scaleAmount; i++) { dst[i] = color; dst[pitch + i] = color; } @@ -61,11 +61,11 @@ void scaleBuffer(const byte *src, byte *dst, uint32 srcWidth, uint32 srcHeight, const byte color = *srcPtr++; const byte color2 = *srcPtr++; - for (int i = 0; i < scaleAmount; i++) { dst[i] = color; dst[i + 1] = color2; dst[pitch + i] = color; dst[pitch + i + 1] = color2; + for (uint i = 0; i < scaleAmount; i++) { } dst += 2 * scaleAmount; } |