aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorTorbjörn Andersson2003-10-24 17:14:56 +0000
committerTorbjörn Andersson2003-10-24 17:14:56 +0000
commit27b22efe17b6998b4bc1361fe1d2338017c2b52b (patch)
treeb9609ca296025022c9dd4633beecbd3e35271cbc /common
parentdc2dd831e9fa8599cfdb3211a4da5d3764be676f (diff)
downloadscummvm-rg350-27b22efe17b6998b4bc1361fe1d2338017c2b52b.tar.gz
scummvm-rg350-27b22efe17b6998b4bc1361fe1d2338017c2b52b.tar.bz2
scummvm-rg350-27b22efe17b6998b4bc1361fe1d2338017c2b52b.zip
Fixed typo and added FIXME comment for the DotMatrix scaler.
svn-id: r10956
Diffstat (limited to 'common')
-rw-r--r--common/scaler.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/common/scaler.cpp b/common/scaler.cpp
index 00f784fd0a..238bd1f3a2 100644
--- a/common/scaler.cpp
+++ b/common/scaler.cpp
@@ -50,7 +50,7 @@ void InitScalers(uint32 BitFormat) {
} else if (BitFormat == 555) {
dotmatrix = dotmatrix_555;
} else {
- error("Unknwon bit format %d\n", BitFormat);
+ error("Unknown bit format %d\n", BitFormat);
}
gBitFormat = BitFormat;
@@ -264,6 +264,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)
{