diff options
author | Paul Gilbert | 2016-11-14 00:12:22 -0500 |
---|---|---|
committer | Paul Gilbert | 2016-11-14 00:12:22 -0500 |
commit | 32f2fa62cd0e4e9a59d00a944958b54a81d06a51 (patch) | |
tree | 5f242b3b13714c2f10366d97e05ebd9e5591ad49 /engines/titanic/support/video_surface.cpp | |
parent | a23d51adb2a59dd4ae53af333d27cfae7190417b (diff) | |
download | scummvm-rg350-32f2fa62cd0e4e9a59d00a944958b54a81d06a51.tar.gz scummvm-rg350-32f2fa62cd0e4e9a59d00a944958b54a81d06a51.tar.bz2 scummvm-rg350-32f2fa62cd0e4e9a59d00a944958b54a81d06a51.zip |
TITANIC: Fix calculating surface transparency color
Diffstat (limited to 'engines/titanic/support/video_surface.cpp')
-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() { |