diff options
| author | Max Horn | 2005-04-26 15:42:35 +0000 |
|---|---|---|
| committer | Max Horn | 2005-04-26 15:42:35 +0000 |
| commit | 3a4dafeaa37226d652eb2e00f92ab73d0acc517e (patch) | |
| tree | efc0881f380b13446244f49d4653b7e1775ef4f6 | |
| parent | ab5355831540e802e838b8872e09db3c3ea97b7a (diff) | |
| download | scummvm-rg350-3a4dafeaa37226d652eb2e00f92ab73d0acc517e.tar.gz scummvm-rg350-3a4dafeaa37226d652eb2e00f92ab73d0acc517e.tar.bz2 scummvm-rg350-3a4dafeaa37226d652eb2e00f92ab73d0acc517e.zip | |
desaturatePalette is V8 specific
svn-id: r17827
| -rw-r--r-- | scumm/intern.h | 4 | ||||
| -rw-r--r-- | scumm/palette.cpp | 4 | ||||
| -rw-r--r-- | scumm/scumm.h | 1 |
3 files changed, 6 insertions, 3 deletions
diff --git a/scumm/intern.h b/scumm/intern.h index 7e19084005..994fcef753 100644 --- a/scumm/intern.h +++ b/scumm/intern.h @@ -1307,6 +1307,10 @@ protected: virtual int getObjectIdFromOBIM(const byte *obim); + + void desaturatePalette(int hueScale, int satScale, int lightScale, int startColor, int endColor); + + /* Version 8 script opcodes */ void o8_mod(); void o8_wait(); diff --git a/scumm/palette.cpp b/scumm/palette.cpp index 1ae057543f..3085c98f12 100644 --- a/scumm/palette.cpp +++ b/scumm/palette.cpp @@ -706,7 +706,7 @@ static int HSL2RGBHelper(int n1, int n2, int hue) { * components of the palette colors. It's used in CMI when Guybrush * walks from the beach towards the swamp. */ -void ScummEngine::desaturatePalette(int hueScale, int satScale, int lightScale, int startColor, int endColor) { +void ScummEngine_v8::desaturatePalette(int hueScale, int satScale, int lightScale, int startColor, int endColor) { if (startColor <= endColor) { const byte *cptr; @@ -925,8 +925,8 @@ const byte *ScummEngine::getPalettePtr(int palindex, int room) { cptr += _CLUT_offs; } else { cptr = findPalInPals(cptr + _PALS_offs, palindex); + assert(cptr); } - assert(cptr); return cptr; } diff --git a/scumm/scumm.h b/scumm/scumm.h index 3984d6d706..176d926480 100644 --- a/scumm/scumm.h +++ b/scumm/scumm.h @@ -973,7 +973,6 @@ protected: void setupShadowPalette(int slot, int redScale, int greenScale, int blueScale, int startColor, int endColor); void setupShadowPalette(int redScale, int greenScale, int blueScale, int startColor, int endColor, int start, int end); virtual void darkenPalette(int redScale, int greenScale, int blueScale, int startColor, int endColor); - void desaturatePalette(int hueScale, int satScale, int lightScale, int startColor, int endColor); void setupCursor(); |
