[Scummvm-cvs-logs] CVS: scummvm/scumm gfx.cpp,2.92,2.93
Max Horn
fingolfin at users.sourceforge.net
Mon May 12 13:34:15 CEST 2003
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv8678
Modified Files:
gfx.cpp
Log Message:
added a hack to draw z masks onto the screen (useful to debug potential z masking bugs, like bug #724685)
Index: gfx.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/gfx.cpp,v
retrieving revision 2.92
retrieving revision 2.93
diff -u -d -r2.92 -r2.93
--- gfx.cpp 11 May 2003 11:27:19 -0000 2.92
+++ gfx.cpp 12 May 2003 20:33:47 -0000 2.93
@@ -1166,6 +1166,26 @@
}
}
}
+
+#if 0
+ // HACK: blit mask(s) onto normal screen. Useful to debug masking
+ for (i = 0; i < numzbuf; i++) {
+ mask_ptr = _vm->getResourceAddress(rtBuffer, 9) + y * _numStrips + x + _imgBufOffs[i];
+ byte *dst = backbuff_ptr;
+ byte *dst2 = bgbak_ptr;
+ for (int h = 0; h < height; h++) {
+ int maskbits = *mask_ptr;
+ for (int j = 0; j < 8; j++) {
+ if (maskbits & 0x80)
+ dst[j] = dst2[j] = 12+i;
+ maskbits <<= 1;
+ }
+ dst += _vm->_screenWidth;
+ dst2 += _vm->_screenWidth;
+ mask_ptr += _numStrips;
+ }
+ }
+#endif
next_iter:
CHECK_HEAP;
More information about the Scummvm-git-logs
mailing list