aboutsummaryrefslogtreecommitdiff
path: root/engines/m4/console.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2010-06-20 07:04:58 +0000
committerPaul Gilbert2010-06-20 07:04:58 +0000
commitfcdb7807a456f5a6cb94932977a1b0e4f0e11089 (patch)
treeb34c46eae56a405dbe0f3ec6d62af1fbc3202916 /engines/m4/console.cpp
parentd6cd656f15aed3ac3b8428442f9397944e6b2c85 (diff)
downloadscummvm-rg350-fcdb7807a456f5a6cb94932977a1b0e4f0e11089.tar.gz
scummvm-rg350-fcdb7807a456f5a6cb94932977a1b0e4f0e11089.tar.bz2
scummvm-rg350-fcdb7807a456f5a6cb94932977a1b0e4f0e11089.zip
Implemented explicit transparency index support - the previous hardcoded index of 0 wasn't correct, since some sprites need that index
svn-id: r50070
Diffstat (limited to 'engines/m4/console.cpp')
-rw-r--r--engines/m4/console.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/m4/console.cpp b/engines/m4/console.cpp
index 4e14afdfaf..19fbf6e852 100644
--- a/engines/m4/console.cpp
+++ b/engines/m4/console.cpp
@@ -196,7 +196,7 @@ bool Console::cmdShowSprite(int argc, const char **argv) {
if (y >= bg->height())
break;
- spr->copyTo(bg, x, y, (int)spr->getTransparentColor());
+ spr->copyTo(bg, x, y, (int)spr->getTransparencyIndex());
x += spr->width();
yMax = MAX(yMax, spr->height());