mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-27 05:32:45 +00:00
SCI32: Fix bad cursor outlines in RAMA
This commit is contained in:
parent
76806732e0
commit
5bb3ca5a6b
@ -345,6 +345,15 @@ public:
|
||||
assert(index < _remaps.size());
|
||||
const SingleRemap &singleRemap = _remaps[index];
|
||||
assert(singleRemap._type != kRemapNone);
|
||||
// SSCI never really properly handled attempts to draw to a target with
|
||||
// pixels above the remap color maximum. In RAMA, the cursor views have
|
||||
// a remap color outlining the cursor, and so get drawn into a target
|
||||
// surface filled with a skip color of 255. In SSCI, this causes the
|
||||
// remapped color to be read from some statically allocated, never
|
||||
// written memory and so always ends up being 0 (black).
|
||||
if (targetColor >= ARRAYSIZE(singleRemap._remapColors)) {
|
||||
return 0;
|
||||
}
|
||||
return singleRemap._remapColors[targetColor];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user