From 7b05525823416ee1dd95022a666933dba2d01f41 Mon Sep 17 00:00:00 2001 From: Nicolas Bacca Date: Wed, 28 Jan 2004 01:05:22 +0000 Subject: 640x480 changes svn-id: r12642 --- backends/wince/CEScaler.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'backends/wince/CEScaler.cpp') 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(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); } -- cgit v1.2.3