aboutsummaryrefslogtreecommitdiff
path: root/engines/m4/graphics.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/graphics.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/graphics.cpp')
-rw-r--r--engines/m4/graphics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/m4/graphics.cpp b/engines/m4/graphics.cpp
index d7a0c9edfc..b0bc8bbc0c 100644
--- a/engines/m4/graphics.cpp
+++ b/engines/m4/graphics.cpp
@@ -919,7 +919,7 @@ void M4Surface::translate(RGBList *list, bool isTransparent) {
byte *palIndexes = list->palIndexes();
for (int i = 0; i < width() * height(); ++i, ++p) {
- if (!isTransparent || (*p != 0)) {
+ if (!isTransparent || (*p != TRANSPARENT_COLOUR_INDEX)) {
assert(*p < list->size());
*p = palIndexes[*p];
}