aboutsummaryrefslogtreecommitdiff
path: root/engines/m4/animation.cpp
diff options
context:
space:
mode:
authorMax Horn2009-12-07 18:22:18 +0000
committerMax Horn2009-12-07 18:22:18 +0000
commitf8126d9da676e69dff384b8a8f7136ad27fb014d (patch)
treedf1b86f98b4792fa4c44f71237f0722aca762584 /engines/m4/animation.cpp
parent6d1e4dd0344f9baef12709e2c90ac98e17392786 (diff)
downloadscummvm-rg350-f8126d9da676e69dff384b8a8f7136ad27fb014d.tar.gz
scummvm-rg350-f8126d9da676e69dff384b8a8f7136ad27fb014d.tar.bz2
scummvm-rg350-f8126d9da676e69dff384b8a8f7136ad27fb014d.zip
M4: Make M4Surface member w, h, pixels protected; some cleanup
svn-id: r46280
Diffstat (limited to 'engines/m4/animation.cpp')
-rw-r--r--engines/m4/animation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/m4/animation.cpp b/engines/m4/animation.cpp
index 4b063241fc..53d00cb5c0 100644
--- a/engines/m4/animation.cpp
+++ b/engines/m4/animation.cpp
@@ -176,7 +176,7 @@ bool Animation::updateAnim() {
M4Sprite *spr = _spriteSeries->getFrame(seriesFrameIndex);
// FIXME: We assume that the transparent color is the color of the top left pixel
- byte *transparentColor = (byte *)spr->pixels;
+ byte *transparentColor = spr->getBasePtr(0, 0);
// FIXME: correct x, y
spr->copyTo(bg, frame->x, frame->y, (int)*transparentColor);