aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/support
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/support')
-rw-r--r--engines/titanic/support/video_surface.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/titanic/support/video_surface.cpp b/engines/titanic/support/video_surface.cpp
index 50a5ca5f16..63ad782722 100644
--- a/engines/titanic/support/video_surface.cpp
+++ b/engines/titanic/support/video_surface.cpp
@@ -407,6 +407,12 @@ uint16 OSVideoSurface::getPixel(const Common::Point &pt) {
return 0;
if (pt.x >= 0 && pt.y >= 0 && pt.x < getWidth() && pt.y < getHeight()) {
+ if (_transparencySurface) {
+ const byte *pixelP = (const byte *)_transparencySurface->getBasePtr(pt.x, pt.y);
+ if (*pixelP != 0xF0)
+ return getTransparencyColor();
+ }
+
lock();
uint16 pixel = *(uint16 *)_rawSurface->getBasePtr(pt.x, pt.y);
unlock();