diff options
author | Nicolas Bacca | 2004-01-27 01:29:30 +0000 |
---|---|---|
committer | Nicolas Bacca | 2004-01-27 01:29:30 +0000 |
commit | 86d5cb7204c9afd378edce0cc83d0aa5d0697d25 (patch) | |
tree | 0c6069913f099bbfe7fc2fde34669fcb7f3b54e1 /backends/wince/CEScaler.cpp | |
parent | b1274d70d9fba33b20088e87e3271077e39491c2 (diff) | |
download | scummvm-rg350-86d5cb7204c9afd378edce0cc83d0aa5d0697d25.tar.gz scummvm-rg350-86d5cb7204c9afd378edce0cc83d0aa5d0697d25.tar.bz2 scummvm-rg350-86d5cb7204c9afd378edce0cc83d0aa5d0697d25.zip |
Fix 640x480, part 1, perfect fix tomorrow probably :p
svn-id: r12632
Diffstat (limited to 'backends/wince/CEScaler.cpp')
-rw-r--r-- | backends/wince/CEScaler.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/backends/wince/CEScaler.cpp b/backends/wince/CEScaler.cpp index 5a2a51031d..e1469ce466 100644 --- a/backends/wince/CEScaler.cpp +++ b/backends/wince/CEScaler.cpp @@ -53,9 +53,10 @@ void PocketPCHalf(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 ds int width, int height) { uint8 *work; int i; + int dec; uint16 srcPitch16 = (uint16)(srcPitch / sizeof(uint16)); - while (height--) { + while ((height-=2) >= 0) { i = 0; work = dstPtr; @@ -66,10 +67,10 @@ void PocketPCHalf(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 ds uint16 color3 = *(((const uint16 *)srcPtr) + (i + srcPitch16)); *(((uint16 *)work) + 0) = interpolate16_3<565, 2, 1, 1>(color1, color2, color3); - - work += 2 * sizeof(uint16); + + work += sizeof(uint16); } - srcPtr += 2 * srcPitch; + srcPtr += 2 * srcPitch; dstPtr += dstPitch; } } |