[Scummvm-cvs-logs] CVS: scummvm/sword2/driver sprite.cpp,1.42,1.43
Torbjörn Andersson
eriktorbjorn at users.sourceforge.net
Sun Jun 6 22:58:02 CEST 2004
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/scumm resource.cpp,1.210,1.211 script_v6.cpp,1.333,1.334 script_v6he.cpp,2.61,2.62 scumm.h,1.401,1.402
- Next message: [Scummvm-cvs-logs] CVS: scummvm/sword2 memory.cpp,1.26,1.27
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/sword2/driver
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24193/driver
Modified Files:
sprite.cpp
Log Message:
Added comment.
Index: sprite.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword2/driver/sprite.cpp,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- sprite.cpp 6 Jun 2004 15:40:31 -0000 1.42
+++ sprite.cpp 7 Jun 2004 05:57:00 -0000 1.43
@@ -505,6 +505,10 @@
if ((_renderCaps & RDBLTFX_SHADOWBLEND) && _lightMask && (scale != 256 || (s->type & RDSPR_SHADOW))) {
byte *lightMap;
+ // Make sure that we never apply the shadow to the original
+ // resource data. This could only ever happen in the
+ // RDSPR_NOCOMPRESSION case.
+
if (!freeSprite) {
newSprite = (byte *) malloc(s->w * s->h);
memcpy(newSprite, sprite, s->w * s->h);
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/scumm resource.cpp,1.210,1.211 script_v6.cpp,1.333,1.334 script_v6he.cpp,2.61,2.62 scumm.h,1.401,1.402
- Next message: [Scummvm-cvs-logs] CVS: scummvm/sword2 memory.cpp,1.26,1.27
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list