aboutsummaryrefslogtreecommitdiff
path: root/sword2
diff options
context:
space:
mode:
authorTorbjörn Andersson2004-06-07 05:57:00 +0000
committerTorbjörn Andersson2004-06-07 05:57:00 +0000
commit78404c30d4a6d9b790b80c9318d14a6a1c84380f (patch)
tree73a0fa60358bc840b12f9587eb1625a82ab7af40 /sword2
parent4f8cb1d514c691b041d05dd8b1a7ae3284edbbb2 (diff)
downloadscummvm-rg350-78404c30d4a6d9b790b80c9318d14a6a1c84380f.tar.gz
scummvm-rg350-78404c30d4a6d9b790b80c9318d14a6a1c84380f.tar.bz2
scummvm-rg350-78404c30d4a6d9b790b80c9318d14a6a1c84380f.zip
Added comment.
svn-id: r13946
Diffstat (limited to 'sword2')
-rw-r--r--sword2/driver/sprite.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/sword2/driver/sprite.cpp b/sword2/driver/sprite.cpp
index 601e003f5b..a886899c55 100644
--- a/sword2/driver/sprite.cpp
+++ b/sword2/driver/sprite.cpp
@@ -505,6 +505,10 @@ int32 Graphics::drawSprite(SpriteInfo *s) {
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);