[Scummvm-cvs-logs] SF.net SVN: scummvm: [26865] scummvm/trunk/engines/cine
cyx at users.sourceforge.net
cyx at users.sourceforge.net
Fri May 18 11:19:36 CEST 2007
Revision: 26865
http://scummvm.svn.sourceforge.net/scummvm/?rev=26865&view=rev
Author: cyx
Date: 2007-05-18 02:19:35 -0700 (Fri, 18 May 2007)
Log Message:
-----------
added debug code to display sprite masks
Modified Paths:
--------------
scummvm/trunk/engines/cine/gfx.cpp
scummvm/trunk/engines/cine/gfx.h
scummvm/trunk/engines/cine/various.cpp
Modified: scummvm/trunk/engines/cine/gfx.cpp
===================================================================
--- scummvm/trunk/engines/cine/gfx.cpp 2007-05-18 09:14:27 UTC (rev 26864)
+++ scummvm/trunk/engines/cine/gfx.cpp 2007-05-18 09:19:35 UTC (rev 26865)
@@ -166,7 +166,7 @@
//gfxFlipPage(page2);
}
-void gfxFillSprite(byte *spritePtr, uint16 width, uint16 height, byte *page, int16 x, int16 y) {
+void gfxFillSprite(byte *spritePtr, uint16 width, uint16 height, byte *page, int16 x, int16 y, uint8 fillColor) {
int16 i;
int16 j;
@@ -178,7 +178,7 @@
if (x + j >= 0 && x + j < 320 && i + y >= 0
&& i + y < 200) {
if (!*(spritePtr++)) {
- *(destPtr++) = 0;
+ *(destPtr++) = fillColor;
} else {
destPtr++;
}
Modified: scummvm/trunk/engines/cine/gfx.h
===================================================================
--- scummvm/trunk/engines/cine/gfx.h 2007-05-18 09:14:27 UTC (rev 26864)
+++ scummvm/trunk/engines/cine/gfx.h 2007-05-18 09:19:35 UTC (rev 26865)
@@ -47,7 +47,7 @@
void gfxFlipPage(void);
void gfxSpriteFunc1(byte *ptr, byte *msk, uint16 width, uint16 height, byte *page, int16 x, int16 y);
-void gfxFillSprite(byte *src4, uint16 sw, uint16 sh, byte *dst4, int16 sx, int16 sy);
+void gfxFillSprite(byte *src4, uint16 sw, uint16 sh, byte *dst4, int16 sx, int16 sy, uint8 fillColor = 0);
void gfxSpriteFunc2(byte *spritePtr, byte *spriteMskPtr, int16 width, int16 height, byte *maskPtr,
int16 maskWidth, int16 maskHeight, byte *bufferSprPtr, byte *bufferMskPtr, int16 xs, int16 ys, int16 xm, int16 ym, byte maskIdx);
Modified: scummvm/trunk/engines/cine/various.cpp
===================================================================
--- scummvm/trunk/engines/cine/various.cpp 2007-05-18 09:14:27 UTC (rev 26864)
+++ scummvm/trunk/engines/cine/various.cpp 2007-05-18 09:19:35 UTC (rev 26865)
@@ -2206,6 +2206,9 @@
maskWidth = animDataTable[maskSpriteIdx].width / 2;
maskHeight = animDataTable[maskSpriteIdx].height;
gfxSpriteFunc2(spritePtr, maskPtr, width, height, animDataTable[maskSpriteIdx].ptr1, maskWidth, maskHeight, ptr, msk, x, y, maskX, maskY, i++);
+#if DEBUG_SPRITE_MASK
+ gfxFillSprite(animDataTable[maskSpriteIdx].ptr1, maskWidth, maskHeight, page, maskX, maskY, 1);
+#endif
}
pCurrentOverlay = pCurrentOverlay->next;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list