aboutsummaryrefslogtreecommitdiff
path: root/engines/m4/sprite.cpp
diff options
context:
space:
mode:
authorMax Horn2009-12-07 18:23:28 +0000
committerMax Horn2009-12-07 18:23:28 +0000
commitd34cdae9cea0165253a8dcfe70911c792366ec08 (patch)
tree25a1da522db8af08cd43082eb64176ca5d7920cf /engines/m4/sprite.cpp
parentf8126d9da676e69dff384b8a8f7136ad27fb014d (diff)
downloadscummvm-rg350-d34cdae9cea0165253a8dcfe70911c792366ec08.tar.gz
scummvm-rg350-d34cdae9cea0165253a8dcfe70911c792366ec08.tar.bz2
scummvm-rg350-d34cdae9cea0165253a8dcfe70911c792366ec08.zip
M4: Move 'determine transparent color' hack into a new M4Sprite method
svn-id: r46281
Diffstat (limited to 'engines/m4/sprite.cpp')
-rw-r--r--engines/m4/sprite.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/m4/sprite.cpp b/engines/m4/sprite.cpp
index d3299ff699..d8d21bc34d 100644
--- a/engines/m4/sprite.cpp
+++ b/engines/m4/sprite.cpp
@@ -171,4 +171,10 @@ void M4Sprite::loadMadsSprite(Common::SeekableReadStream* source) {
}
}
+byte M4Sprite::getTransparentColor() const {
+ // FIXME: We assume that the transparent color is the color of the
+ // top left pixel.
+ return *getBasePtr(0, 0);
+}
+
} // End of namespace M4