aboutsummaryrefslogtreecommitdiff
path: root/scumm/palette_he.cpp
diff options
context:
space:
mode:
authorTravis Howell2005-04-21 16:02:37 +0000
committerTravis Howell2005-04-21 16:02:37 +0000
commitd7f263ff1a7b291af01004cfb8951f27617bfd52 (patch)
tree402d192ba9109f7d620933d581580e4b5469b445 /scumm/palette_he.cpp
parent098e0cce58a0c4039ac05fd7134c378ce33e1b71 (diff)
downloadscummvm-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.cpp8
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);