[Scummvm-cvs-logs] CVS: scummvm/scumm nut_renderer.cpp,1.39,1.40
Max Horn
fingolfin at users.sourceforge.net
Wed Jan 7 17:44:01 CET 2004
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv13506
Modified Files:
nut_renderer.cpp
Log Message:
fix maskpos (I think... needs testing)
Index: nut_renderer.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/nut_renderer.cpp,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- nut_renderer.cpp 7 Jan 2004 13:29:30 -0000 1.39
+++ nut_renderer.cpp 8 Jan 2004 01:43:32 -0000 1.40
@@ -327,7 +327,7 @@
for (int ty = minY; ty < height; ty++) {
maskmask = revBitMask[(x + minX) & 7];
- maskpos = minX;
+ maskpos = (x%8 + minX) / 8;
for (int tx = minX; tx < width; tx++) {
if (src[tx] != 0) {
dst[tx] = color;
More information about the Scummvm-git-logs
mailing list