mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
TITANIC: Fix Titania's nose remaining present after being picked up
Fixing this required reverting the previous fix I'd done for the Doorbot's 'Cloak Off' animation during the prologue. What the proper fix for it, seems to be, is that when a video is full 32-bit ARGB, if it has a second transparency track, then simply ignore the alpha in the first track, and simply use the RGB values for each pixel
This commit is contained in:
@@ -321,7 +321,7 @@ void AVISurface::copyMovieFrame(const Graphics::Surface &src, Graphics::ManagedS
|
||||
src.format.colorToARGB(*pSrc, a, r, g, b);
|
||||
assert(a == 0 || a == 0xff);
|
||||
|
||||
*pDest = (a == 0) ? transPixel : dest.format.RGBToColor(r, g, b);
|
||||
*pDest = (a == 0 && _streamCount == 1) ? transPixel : dest.format.RGBToColor(r, g, b);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -412,7 +412,7 @@ bool AVISurface::renderFrame() {
|
||||
s->free();
|
||||
delete s;
|
||||
} else {
|
||||
_videoSurface->getRawSurface()->transBlitFrom(frameSurface, _videoSurface->getTransparencyColor());
|
||||
_videoSurface->getRawSurface()->blitFrom(frameSurface);
|
||||
}
|
||||
|
||||
_videoSurface->unlock();
|
||||
|
||||
Reference in New Issue
Block a user