diff options
author | Travis Howell | 2005-04-21 16:02:37 +0000 |
---|---|---|
committer | Travis Howell | 2005-04-21 16:02:37 +0000 |
commit | d7f263ff1a7b291af01004cfb8951f27617bfd52 (patch) | |
tree | 402d192ba9109f7d620933d581580e4b5469b445 /scumm/palette_he.cpp | |
parent | 098e0cce58a0c4039ac05fd7134c378ce33e1b71 (diff) | |
download | scummvm-rg350-d7f263ff1a7b291af01004cfb8951f27617bfd52.tar.gz scummvm-rg350-d7f263ff1a7b291af01004cfb8951f27617bfd52.tar.bz2 scummvm-rg350-d7f263ff1a7b291af01004cfb8951f27617bfd52.zip |
Add palette function for HE99+ games.
svn-id: r17737
Diffstat (limited to 'scumm/palette_he.cpp')
-rw-r--r-- | scumm/palette_he.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scumm/palette_he.cpp b/scumm/palette_he.cpp index ed2c27ab26..4999e0891a 100644 --- a/scumm/palette_he.cpp +++ b/scumm/palette_he.cpp @@ -131,6 +131,14 @@ int ScummEngine_v90he::getPaletteUnk1(int palSlot, int arg_4, int arg_8, int sta return bestitem; } +int ScummEngine_v90he::getPaletteUnk2(int palSlot, int unk1, int unk2) { + assert(palSlot >= 1 && palSlot <= _numPalettes); + assert(unk1 >= 1 && unk1 <= 255); + + return _hePalettes[palSlot * 1024 + unk1 * 3 + unk2 / 3]; +} + + int ScummEngine_v90he::getHEPaletteColor(int palSlot, int color) { assert(palSlot >= 1 && palSlot <= _numPalettes); assert(color >= 1 && color <= 255); |