mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-04 18:06:26 +00:00
Actually applies to all SCUMM 5/6 games.
svn-id: r17679
This commit is contained in:
parent
fd6c9ad9d3
commit
ad96d7fdb1
@ -586,6 +586,13 @@ void ScummEngine::setupShadowPalette(int redScale, int greenScale, int blueScale
|
|||||||
// from within Room 23 (the big machine), as it has no shadow effects
|
// from within Room 23 (the big machine), as it has no shadow effects
|
||||||
// and thus doesn't result in any visual differences.
|
// and thus doesn't result in any visual differences.
|
||||||
|
|
||||||
|
int max;
|
||||||
|
if (_version >= 5 && _version <= 6) {
|
||||||
|
max = 252;
|
||||||
|
} else {
|
||||||
|
max = 255;
|
||||||
|
}
|
||||||
|
|
||||||
if (_gameId == GID_SAMNMAX) {
|
if (_gameId == GID_SAMNMAX) {
|
||||||
for (i = 0; i < 256; i++)
|
for (i = 0; i < 256; i++)
|
||||||
_shadowPalette[i] = i;
|
_shadowPalette[i] = i;
|
||||||
@ -605,12 +612,12 @@ void ScummEngine::setupShadowPalette(int redScale, int greenScale, int blueScale
|
|||||||
int ar, ag, ab;
|
int ar, ag, ab;
|
||||||
uint sum, bestsum, bestitem = 0;
|
uint sum, bestsum, bestitem = 0;
|
||||||
|
|
||||||
if (r > 255)
|
if (r > max)
|
||||||
r = 255;
|
r = max;
|
||||||
if (g > 255)
|
if (g > max)
|
||||||
g = 255;
|
g = max;
|
||||||
if (b > 255)
|
if (b > max)
|
||||||
b = 255;
|
b = max;
|
||||||
|
|
||||||
bestsum = 32000;
|
bestsum = 32000;
|
||||||
|
|
||||||
@ -644,8 +651,8 @@ void ScummEngine::darkenPalette(int redScale, int greenScale, int blueScale, int
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
int max;
|
int max;
|
||||||
if ((_features & GF_FMTOWNS) && (_version == 5)) {
|
if (_version >= 5 && _version <= 6 && _heversion <= 60) {
|
||||||
max = 63;
|
max = 252;
|
||||||
} else {
|
} else {
|
||||||
max = 255;
|
max = 255;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user