[Scummvm-cvs-logs] CVS: scummvm/common scaler.cpp,1.60,1.61
Gregory Montoir
cyx at users.sourceforge.net
Sat Aug 7 10:23:08 CEST 2004
Update of /cvsroot/scummvm/scummvm/common
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24447/common
Modified Files:
scaler.cpp
Log Message:
centers the scaled bitmap and fix the scaling of borders for ASM version)
Index: scaler.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/scaler.cpp,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -d -r1.60 -r1.61
--- scaler.cpp 7 Aug 2004 16:04:42 -0000 1.60
+++ scaler.cpp 7 Aug 2004 17:21:52 -0000 1.61
@@ -173,7 +173,7 @@
*/
void AdvMame2x(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch,
int width, int height) {
- scale(2, dstPtr, dstPitch, srcPtr, srcPitch, 2, width, height);
+ scale(2, dstPtr, dstPitch, srcPtr - srcPitch, srcPitch, 2, width, height);
}
/**
@@ -182,7 +182,7 @@
*/
void AdvMame3x(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch,
int width, int height) {
- scale(3, dstPtr, dstPitch, srcPtr, srcPitch, 2, width, height);
+ scale(3, dstPtr, dstPitch, srcPtr - srcPitch, srcPitch, 2, width, height);
}
template<int bitFormat>
More information about the Scummvm-git-logs
mailing list