aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2003-08-17 05:46:48 +0000
committerTravis Howell2003-08-17 05:46:48 +0000
commit811f29fe79ee90735e24013e667cebc8344715a9 (patch)
treef9c9b3512939ec3eb8e41825a43abb853a5cf2fa
parent53d1db8caea6e7e1a9f4fd27f0d516ecaeb0c150 (diff)
downloadscummvm-rg350-811f29fe79ee90735e24013e667cebc8344715a9.tar.gz
scummvm-rg350-811f29fe79ee90735e24013e667cebc8344715a9.tar.bz2
scummvm-rg350-811f29fe79ee90735e24013e667cebc8344715a9.zip
Add palette tables for v1 costumes, thanks to Hoenicke
Code isn't enabled yet though. svn-id: r9733
-rw-r--r--scumm/costume.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/scumm/costume.cpp b/scumm/costume.cpp
index ab923b9154..d04df22147 100644
--- a/scumm/costume.cpp
+++ b/scumm/costume.cpp
@@ -327,6 +327,9 @@ void CostumeRenderer::c64_ignorePakCols(int num) {
}
}
+int v1_actor_palatte_1 [] = { 8, 8, 8, 8, 4, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 0};
+int v1_actor_palatte_2 [] = { 0, 7, 2, 6, 9, 1, 3, 7, 7, 1, 1, 9, 1, 4, 5, 5, 4, 1, 0, 5, 4, 2, 2, 7, 7, 0};
+
void CostumeRenderer::procC64() {
const byte *src;
byte *dst;
@@ -346,9 +349,12 @@ void CostumeRenderer::procC64() {
// * figure out how to get the right colors/palette
// * test masking (once we implement any masking for V1 games)
-// const byte *palette = _vm->gdi._C64Colors;
- const byte palette[4] = { 0, 10, 6, 0 };
-// const byte *palette = _palette;
+ byte palette[4] = { 0, 10, 6, 0 };
+ //FIXME We need to know actor number for correct palette
+// palette[0] = 0;
+// palette[1] = v1_actor_palatte_1[actor];
+// palette[2] = v1_actor_palatte_2[actor];
+// palette[3] = 0;
v1.skip_width >>= 3;