aboutsummaryrefslogtreecommitdiff
path: root/engines/queen
diff options
context:
space:
mode:
authorJohannes Schickel2011-02-13 19:35:35 +0100
committerJohannes Schickel2011-02-14 17:08:32 +0100
commit46f232656e14eb5dbb050ef6cde358a4b1cb66ed (patch)
tree2d2109fee24c6fab108e51dc409a28089b07e252 /engines/queen
parent51c8871b9b5b5a5d16440eb3da043749d8b91a9c (diff)
downloadscummvm-rg350-46f232656e14eb5dbb050ef6cde358a4b1cb66ed.tar.gz
scummvm-rg350-46f232656e14eb5dbb050ef6cde358a4b1cb66ed.tar.bz2
scummvm-rg350-46f232656e14eb5dbb050ef6cde358a4b1cb66ed.zip
QUEEN: Adapt to setPalette RGBA->RGB change.
Diffstat (limited to 'engines/queen')
-rw-r--r--engines/queen/display.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/engines/queen/display.cpp b/engines/queen/display.cpp
index 4557588732..7b16df52bf 100644
--- a/engines/queen/display.cpp
+++ b/engines/queen/display.cpp
@@ -159,15 +159,7 @@ void Display::palSet(const uint8 *pal, int start, int end, bool updateScreen) {
debug(9, "Display::palSet(%d, %d)", start, end);
const int numColors = end - start + 1;
assert(numColors <= 256);
- uint8 tempPal[256 * 4];
- pal += start * 3;
- for (int i = 0; i < numColors; i++) {
- tempPal[4 * i + 0] = *pal++;
- tempPal[4 * i + 1] = *pal++;
- tempPal[4 * i + 2] = *pal++;
- tempPal[4 * i + 3] = 0;
- }
- _system->getPaletteManager()->setPalette(tempPal, start, numColors);
+ _system->getPaletteManager()->setPalette(pal + start * 3, start, numColors);
if (updateScreen) {
_vm->input()->delay(20);
}