From a51fb1f3b6fdc5bbb45925eb134833abd87dbba7 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Sun, 1 Oct 2017 23:01:09 -0500 Subject: SCI32: Fix missing transparency in RAMA title screen --- engines/sci/video/robot_decoder.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'engines/sci/video') diff --git a/engines/sci/video/robot_decoder.cpp b/engines/sci/video/robot_decoder.cpp index 7eaa5cff38..79079edfae 100644 --- a/engines/sci/video/robot_decoder.cpp +++ b/engines/sci/video/robot_decoder.cpp @@ -1594,16 +1594,18 @@ void RobotDecoder::preallocateCelMemory(const byte *rawVideoData, const int16 nu maxFrameArea = area; } + const bool remap = (getSciVersion() == SCI_VERSION_3); + CelHandleInfo &celHandle = _celHandles[i]; if (celHandle.status == CelHandleInfo::kRobotLifetime) { if (_maxCelArea[i] < area) { _segMan->freeBitmap(celHandle.bitmapId); - _segMan->allocateBitmap(&celHandle.bitmapId, celWidth, celHeight, 255, 0, 0, _xResolution, _yResolution, kRawPaletteSize, false, false); + _segMan->allocateBitmap(&celHandle.bitmapId, celWidth, celHeight, 255, 0, 0, _xResolution, _yResolution, kRawPaletteSize, remap, false); celHandle.area = area; celHandle.status = CelHandleInfo::kFrameLifetime; } } else if (celHandle.status == CelHandleInfo::kNoCel) { - _segMan->allocateBitmap(&celHandle.bitmapId, celWidth, celHeight, 255, 0, 0, _xResolution, _yResolution, kRawPaletteSize, false, false); + _segMan->allocateBitmap(&celHandle.bitmapId, celWidth, celHeight, 255, 0, 0, _xResolution, _yResolution, kRawPaletteSize, remap, false); celHandle.area = area; celHandle.status = CelHandleInfo::kFrameLifetime; } else { -- cgit v1.2.3