aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJohannes Schickel2011-02-19 21:19:45 +0100
committerJohannes Schickel2011-02-19 21:19:45 +0100
commitb26f30b98793c522265a3eeb48fb3b41034663c6 (patch)
tree2cea25dc773d7c75110083539af887fa2986318c /engines
parent1606ff1d4eee88b9616cf849fce54e172cb4a8ba (diff)
downloadscummvm-rg350-b26f30b98793c522265a3eeb48fb3b41034663c6.tar.gz
scummvm-rg350-b26f30b98793c522265a3eeb48fb3b41034663c6.tar.bz2
scummvm-rg350-b26f30b98793c522265a3eeb48fb3b41034663c6.zip
DRASCULA: Adapt to setPalette RGBA->RGB change.
Diffstat (limited to 'engines')
-rw-r--r--engines/drascula/palette.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/engines/drascula/palette.cpp b/engines/drascula/palette.cpp
index 67597efd0c..b521c0313b 100644
--- a/engines/drascula/palette.cpp
+++ b/engines/drascula/palette.cpp
@@ -65,15 +65,12 @@ void DrasculaEngine::black() {
}
void DrasculaEngine::setPalette(byte *PalBuf) {
- byte pal[256 * 4];
- int i;
-
- for (i = 0; i < 256; i++) {
- pal[i * 4 + 0] = PalBuf[i * 3 + 0] * 4;
- pal[i * 4 + 1] = PalBuf[i * 3 + 1] * 4;
- pal[i * 4 + 2] = PalBuf[i * 3 + 2] * 4;
- pal[i * 4 + 3] = 0;
+ byte pal[256 * 3];
+
+ for (int i = 0; i < 3 * 256; ++i) {
+ pal[i] = PalBuf[i] * 4;
}
+
_system->getPaletteManager()->setPalette(pal, 0, 256);
_system->updateScreen();
}