From 87e0e57567ab6ae796e159ba6b574d1528aed217 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 27 Feb 2004 19:36:52 +0000 Subject: the 2xsai class scalers all move the resulting image one up; work around that svn-id: r13071 --- common/scaler/2xsai.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'common/scaler') diff --git a/common/scaler/2xsai.cpp b/common/scaler/2xsai.cpp index 391703f85b..cf7e3457e6 100644 --- a/common/scaler/2xsai.cpp +++ b/common/scaler/2xsai.cpp @@ -51,6 +51,8 @@ void Super2xSaITemplate(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uin const uint16 *bP; uint16 *dP; const uint32 nextlineSrc = srcPitch >> 1; + + dstPtr += dstPitch; while (height--) { bP = (const uint16 *)srcPtr; @@ -161,6 +163,8 @@ void SuperEagleTemplate(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uin uint16 *dP; const uint32 nextlineSrc = srcPitch >> 1; + dstPtr += dstPitch; + while (height--) { bP = (const uint16 *)srcPtr; dP = (uint16 *)dstPtr; @@ -272,6 +276,8 @@ void _2xSaITemplate(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 uint16 *dP; const uint32 nextlineSrc = srcPitch >> 1; + dstPtr += dstPitch; + while (height--) { bP = (const uint16 *)srcPtr; dP = (uint16 *)dstPtr; -- cgit v1.2.3