aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/support/transparency_surface.h
diff options
context:
space:
mode:
authorPaul Gilbert2016-10-07 20:25:07 -0400
committerPaul Gilbert2016-10-07 20:25:07 -0400
commitd09c49fb0d321b97b8a09c16f169930c8e176aa1 (patch)
treea0d78a99f565c946cdb076062bd41e32964bc68c /engines/titanic/support/transparency_surface.h
parent086963fd239db247e36a35cac2c19b2ce62f138f (diff)
downloadscummvm-rg350-d09c49fb0d321b97b8a09c16f169930c8e176aa1.tar.gz
scummvm-rg350-d09c49fb0d321b97b8a09c16f169930c8e176aa1.tar.bz2
scummvm-rg350-d09c49fb0d321b97b8a09c16f169930c8e176aa1.zip
TITANIC: Fix transparency handling of Doorbot and Photograph
Diffstat (limited to 'engines/titanic/support/transparency_surface.h')
-rw-r--r--engines/titanic/support/transparency_surface.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/titanic/support/transparency_surface.h b/engines/titanic/support/transparency_surface.h
index 06861b609b..0391b6d5b7 100644
--- a/engines/titanic/support/transparency_surface.h
+++ b/engines/titanic/support/transparency_surface.h
@@ -71,12 +71,12 @@ public:
/**
* Returns the alpha value for the pixel (0-31)
*/
- uint getAlpha() const { return getPixel() >> 3; }
+ uint getAlpha() const { return 31 - (getPixel() >> 3); }
/**
* Returns true if the pixel is completely transparent
*/
- bool isPixelTransparent() const { return getAlpha() == 0; }
+ bool isPixelTransparent() const { return getAlpha() == 31; }
};
} // End of namespace Titanic