[Scummvm-cvs-logs] CVS: scummvm/common/scaler 2xsai.cpp,1.5,1.6
Max Horn
fingolfin at users.sourceforge.net
Fri Feb 27 11:54:03 CET 2004
Update of /cvsroot/scummvm/scummvm/common/scaler
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25028
Modified Files:
2xsai.cpp
Log Message:
the 2xsai class scalers all move the resulting image one up; work around that
Index: 2xsai.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/scaler/2xsai.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- 2xsai.cpp 6 Jan 2004 12:45:28 -0000 1.5
+++ 2xsai.cpp 27 Feb 2004 19:36:52 -0000 1.6
@@ -51,6 +51,8 @@
const uint16 *bP;
uint16 *dP;
const uint32 nextlineSrc = srcPitch >> 1;
+
+ dstPtr += dstPitch;
while (height--) {
bP = (const uint16 *)srcPtr;
@@ -161,6 +163,8 @@
uint16 *dP;
const uint32 nextlineSrc = srcPitch >> 1;
+ dstPtr += dstPitch;
+
while (height--) {
bP = (const uint16 *)srcPtr;
dP = (uint16 *)dstPtr;
@@ -272,6 +276,8 @@
uint16 *dP;
const uint32 nextlineSrc = srcPitch >> 1;
+ dstPtr += dstPitch;
+
while (height--) {
bP = (const uint16 *)srcPtr;
dP = (uint16 *)dstPtr;
More information about the Scummvm-git-logs
mailing list