aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2005-04-19 06:44:54 +0000
committerTravis Howell2005-04-19 06:44:54 +0000
commitfd6c9ad9d36144c0b68447840b19ace420857656 (patch)
treedb2eb22591c0c5f9714c252e693f35790fb51d6d
parentdfaf0145da57f30c8fb148a76522ceade453a087 (diff)
downloadscummvm-rg350-fd6c9ad9d36144c0b68447840b19ace420857656.tar.gz
scummvm-rg350-fd6c9ad9d36144c0b68447840b19ace420857656.tar.bz2
scummvm-rg350-fd6c9ad9d36144c0b68447840b19ace420857656.zip
Add different in monkey2 FM-TOWNS
svn-id: r17678
-rw-r--r--scumm/palette.cpp19
1 files changed, 13 insertions, 6 deletions
diff --git a/scumm/palette.cpp b/scumm/palette.cpp
index 5805db434a..4710bc4c26 100644
--- a/scumm/palette.cpp
+++ b/scumm/palette.cpp
@@ -643,6 +643,13 @@ void ScummEngine::darkenPalette(int redScale, int greenScale, int blueScale, int
if (_roomResource == 0) // FIXME - HACK to get COMI demo working
return;
+ int max;
+ if ((_features & GF_FMTOWNS) && (_version == 5)) {
+ max = 63;
+ } else {
+ max = 255;
+ }
+
if (startColor <= endColor) {
const byte *cptr;
const byte *palptr;
@@ -662,20 +669,20 @@ void ScummEngine::darkenPalette(int redScale, int greenScale, int blueScale, int
color = *cptr++;
color = color * redScale / 0xFF;
- if (color > 255)
- color = 255;
+ if (color > max)
+ color = max;
_currentPalette[idx * 3 + 0] = color;
color = *cptr++;
color = color * greenScale / 0xFF;
- if (color > 255)
- color = 255;
+ if (color > max)
+ color = max;
_currentPalette[idx * 3 + 1] = color;
color = *cptr++;
color = color * blueScale / 0xFF;
- if (color > 255)
- color = 255;
+ if (color > max)
+ color = max;
_currentPalette[idx * 3 + 2] = color;
}
if (_heversion != 70)