diff options
Diffstat (limited to 'engines/titanic/support')
-rw-r--r-- | engines/titanic/support/video_surface.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/engines/titanic/support/video_surface.cpp b/engines/titanic/support/video_surface.cpp index 52610379b5..fd570e5d9a 100644 --- a/engines/titanic/support/video_surface.cpp +++ b/engines/titanic/support/video_surface.cpp @@ -267,10 +267,7 @@ void CVideoSurface::transBlitRect(const Rect &srcRect, const Rect &destRect, CVi } uint CVideoSurface::getTransparencyColor() { - uint32 val = -(getPixelDepth() - 2); - val &= 0xFFFF8400; - val += 0xF81F; - return val; + return getPixelDepth() == 2 ? 0xf81f : 0x7c1f; } bool CVideoSurface::hasFrame() { |