diff options
author | Nicolas Bacca | 2004-01-28 01:05:22 +0000 |
---|---|---|
committer | Nicolas Bacca | 2004-01-28 01:05:22 +0000 |
commit | 7b05525823416ee1dd95022a666933dba2d01f41 (patch) | |
tree | f2b82e2bed758e17cbabd819e75e4b74a9aec15f /backends | |
parent | 63be7c1323061db7f30897886c92b899814e0247 (diff) | |
download | scummvm-rg350-7b05525823416ee1dd95022a666933dba2d01f41.tar.gz scummvm-rg350-7b05525823416ee1dd95022a666933dba2d01f41.tar.bz2 scummvm-rg350-7b05525823416ee1dd95022a666933dba2d01f41.zip |
640x480 changes
svn-id: r12642
Diffstat (limited to 'backends')
-rw-r--r-- | backends/wince/CEScaler.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/backends/wince/CEScaler.cpp b/backends/wince/CEScaler.cpp index e1469ce466..a3348cfa8e 100644 --- a/backends/wince/CEScaler.cpp +++ b/backends/wince/CEScaler.cpp @@ -53,7 +53,6 @@ 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-=2) >= 0) { @@ -61,12 +60,12 @@ void PocketPCHalf(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 ds work = dstPtr; for (int i=0; i<width; i+=2) { - // Work with 2 pixels on a row and one below + // Another lame filter attempt :) uint16 color1 = *(((const uint16 *)srcPtr) + i); uint16 color2 = *(((const uint16 *)srcPtr) + (i + 1)); uint16 color3 = *(((const uint16 *)srcPtr) + (i + srcPitch16)); - - *(((uint16 *)work) + 0) = interpolate16_3<565, 2, 1, 1>(color1, color2, color3); + uint16 color4 = *(((const uint16 *)srcPtr) + (i + srcPitch16 + 1)); + *(((uint16 *)work) + 0) = interpolate16_4<565, 1, 1, 1, 1>(color1, color2, color3, color4); work += sizeof(uint16); } |