[Scummvm-cvs-logs] CVS: scummvm/common scaler.cpp,1.50,1.51
Torbj?rn Andersson
eriktorbjorn at users.sourceforge.net
Sat Oct 25 01:33:21 CEST 2003
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/queen graphics.cpp,1.34,1.35 logic.cpp,1.58,1.59 resource.cpp,1.18,1.19 sound.cpp,1.3,1.4 talk.cpp,1.23,1.24
- Next message: [Scummvm-cvs-logs] CVS: scummvm/queen graphics.h,1.32,1.33 graphics.cpp,1.35,1.36
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/common
In directory sc8-pr-cvs1:/tmp/cvs-serv19286
Modified Files:
scaler.cpp
Log Message:
Fixed typo and added FIXME comment for the DotMatrix scaler.
Index: scaler.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/scaler.cpp,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -d -r1.50 -r1.51
--- scaler.cpp 2 Oct 2003 23:29:58 -0000 1.50
+++ scaler.cpp 24 Oct 2003 17:14:56 -0000 1.51
@@ -50,7 +50,7 @@
} else if (BitFormat == 555) {
dotmatrix = dotmatrix_555;
} else {
- error("Unknwon bit format %d\n", BitFormat);
+ error("Unknown bit format %d\n", BitFormat);
}
gBitFormat = BitFormat;
@@ -263,6 +263,12 @@
static inline uint16 DOT_16(uint16 c, int j, int i) {
return c - ((c >> 2) & *(dotmatrix + ((j & 3) << 2) + (i & 3)));
}
+
+// FIXME: This scaler doesn't quite work. Either it needs to know where on the
+// screen it's drawing, or the dirty rects will have to be adjusted so that
+// access to the dotmatrix array are made in a consistent way. (Doing that in
+// a way that also works together with aspect-ratio correction is left as an
+// exercise for the reader.)
void DotMatrix(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch,
int width, int height)
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/queen graphics.cpp,1.34,1.35 logic.cpp,1.58,1.59 resource.cpp,1.18,1.19 sound.cpp,1.3,1.4 talk.cpp,1.23,1.24
- Next message: [Scummvm-cvs-logs] CVS: scummvm/queen graphics.h,1.32,1.33 graphics.cpp,1.35,1.36
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list