aboutsummaryrefslogtreecommitdiff
path: root/common/scaler
diff options
context:
space:
mode:
authorMax Horn2004-02-27 19:36:52 +0000
committerMax Horn2004-02-27 19:36:52 +0000
commit87e0e57567ab6ae796e159ba6b574d1528aed217 (patch)
tree20c7b136d6d0325dd6a379d3c063c23e05aaf382 /common/scaler
parent2671ca515e0d95e8fd2bc4cfe3b37271b037f17f (diff)
downloadscummvm-rg350-87e0e57567ab6ae796e159ba6b574d1528aed217.tar.gz
scummvm-rg350-87e0e57567ab6ae796e159ba6b574d1528aed217.tar.bz2
scummvm-rg350-87e0e57567ab6ae796e159ba6b574d1528aed217.zip
the 2xsai class scalers all move the resulting image one up; work around that
svn-id: r13071
Diffstat (limited to 'common/scaler')
-rw-r--r--common/scaler/2xsai.cpp6
1 files changed, 6 insertions, 0 deletions
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;