aboutsummaryrefslogtreecommitdiff
path: root/engines/m4/animation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/m4/animation.cpp')
-rw-r--r--engines/m4/animation.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/engines/m4/animation.cpp b/engines/m4/animation.cpp
index 53d00cb5c0..836334a305 100644
--- a/engines/m4/animation.cpp
+++ b/engines/m4/animation.cpp
@@ -175,11 +175,8 @@ bool Animation::updateAnim() {
// Write the sprite onto the screen
M4Sprite *spr = _spriteSeries->getFrame(seriesFrameIndex);
- // FIXME: We assume that the transparent color is the color of the top left pixel
- byte *transparentColor = spr->getBasePtr(0, 0);
-
// FIXME: correct x, y
- spr->copyTo(bg, frame->x, frame->y, (int)*transparentColor);
+ spr->copyTo(bg, frame->x, frame->y, (int)spr->getTransparentColor());
// HACK: wait a bit
g_system->delayMillis(100);