aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}