diff options
author | Max Horn | 2009-12-07 18:23:28 +0000 |
---|---|---|
committer | Max Horn | 2009-12-07 18:23:28 +0000 |
commit | d34cdae9cea0165253a8dcfe70911c792366ec08 (patch) | |
tree | 25a1da522db8af08cd43082eb64176ca5d7920cf /engines/m4/console.cpp | |
parent | f8126d9da676e69dff384b8a8f7136ad27fb014d (diff) | |
download | scummvm-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/console.cpp')
-rw-r--r-- | engines/m4/console.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/engines/m4/console.cpp b/engines/m4/console.cpp index c95108066c..9744741a52 100644 --- a/engines/m4/console.cpp +++ b/engines/m4/console.cpp @@ -223,10 +223,7 @@ bool Console::cmdShowSprite(int argc, const char **argv) { if (y >= bg->height()) break; - // FIXME: We assume that the transparent color is the color of the top left pixel - byte *transparentColor = spr->getBasePtr(0, 0); - - spr->copyTo(bg, x, y, (int)*transparentColor); + spr->copyTo(bg, x, y, (int)spr->getTransparentColor()); x += spr->width(); yMax = MAX(yMax, spr->height()); |