aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics/celobj32.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2016-03-16 01:18:50 +0200
committerFilippos Karapetis2016-03-16 01:51:08 +0200
commit1f47766b6046a2d1f06982099a3a113c7ff61617 (patch)
tree330c4371fe85e615401999fd9e748a6e377d3e56 /engines/sci/graphics/celobj32.cpp
parentf94ddfe5a62878052527b86ca98749699e055b1d (diff)
downloadscummvm-rg350-1f47766b6046a2d1f06982099a3a113c7ff61617.tar.gz
scummvm-rg350-1f47766b6046a2d1f06982099a3a113c7ff61617.tar.bz2
scummvm-rg350-1f47766b6046a2d1f06982099a3a113c7ff61617.zip
SCI32: Implement analyzeUncompressedForRemap()
Diffstat (limited to 'engines/sci/graphics/celobj32.cpp')
-rw-r--r--engines/sci/graphics/celobj32.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/graphics/celobj32.cpp b/engines/sci/graphics/celobj32.cpp
index 2270279710..80ff70f6e2 100644
--- a/engines/sci/graphics/celobj32.cpp
+++ b/engines/sci/graphics/celobj32.cpp
@@ -822,7 +822,7 @@ bool CelObjView::analyzeUncompressedForRemap() const {
byte *pixels = getResPointer() + READ_SCI11ENDIAN_UINT32(getResPointer() + _celHeaderOffset + 24);
for (int i = 0; i < _width * _height; ++i) {
uint8 pixel = pixels[i];
- if (/* TODO: pixel >= Remap::minRemapColor && pixel <= Remap::maxRemapColor */ false && pixel != _transparentColor) {
+ if (pixel >= g_sci->_gfxRemap32->getStartColor() && pixel <= g_sci->_gfxRemap32->getEndColor() && pixel != _transparentColor) {
return true;
}
}