[Scummvm-git-logs] scummvm master -> a51fb1f3b6fdc5bbb45925eb134833abd87dbba7
csnover
csnover at users.noreply.github.com
Mon Oct 2 06:08:14 CEST 2017
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
a51fb1f3b6 SCI32: Fix missing transparency in RAMA title screen
Commit: a51fb1f3b6fdc5bbb45925eb134833abd87dbba7
https://github.com/scummvm/scummvm/commit/a51fb1f3b6fdc5bbb45925eb134833abd87dbba7
Author: Colin Snover (github.com at zetafleet.com)
Date: 2017-10-01T23:08:00-05:00
Commit Message:
SCI32: Fix missing transparency in RAMA title screen
Changed paths:
engines/sci/video/robot_decoder.cpp
diff --git a/engines/sci/video/robot_decoder.cpp b/engines/sci/video/robot_decoder.cpp
index 7eaa5cf..79079ed 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 {
More information about the Scummvm-git-logs
mailing list