mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
TITANIC: Fix showing all that pink during Prologue and in Parrot room
This commit is contained in:
@@ -206,6 +206,7 @@ void CVideoSurface::transBlitRect(const Rect &srcRect, const Rect &destRect, CVi
|
||||
Graphics::ManagedSurface *srcSurface = src->_rawSurface;
|
||||
Graphics::ManagedSurface *destSurface = _rawSurface;
|
||||
Graphics::Surface destArea = destSurface->getSubArea(destRect);
|
||||
uint transColor = getTransparencyColor();
|
||||
|
||||
const uint16 *srcPtr = (const uint16 *)srcSurface->getBasePtr(
|
||||
srcRect.left, flipFlag ? srcRect.top : srcRect.bottom - 1);
|
||||
@@ -223,7 +224,8 @@ void CVideoSurface::transBlitRect(const Rect &srcRect, const Rect &destRect, CVi
|
||||
transSurface.setCol(srcRect.left);
|
||||
|
||||
for (int srcX = srcRect.left; srcX < srcRect.right; ++srcX) {
|
||||
copyPixel(lineDestP, lineSrcP, transSurface.getAlpha() >> 3, srcSurface->format, isAlpha);
|
||||
if (*lineSrcP != transColor)
|
||||
copyPixel(lineDestP, lineSrcP, transSurface.getAlpha() >> 3, srcSurface->format, isAlpha);
|
||||
|
||||
++lineSrcP;
|
||||
++lineDestP;
|
||||
|
||||
Reference in New Issue
Block a user