From bff3cc390f56defe9b2e7debc046e0a1673fe413 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 19 Dec 2014 22:46:40 +0100 Subject: LAB: Fix game palette --- engines/lab/vga.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/lab/vga.cpp b/engines/lab/vga.cpp index c8960a49fe..9fb9f99d95 100644 --- a/engines/lab/vga.cpp +++ b/engines/lab/vga.cpp @@ -244,8 +244,13 @@ void waitTOF() { } void WSDL_SetColors(byte *buf, uint16 first, uint16 numreg, uint16 slow) { + byte tmp[256 * 3]; - g_system->getPaletteManager()->setPalette(buf, first, numreg); + for (int i = 0; i < 256 * 3; i++) { + tmp[i] = buf[i] * 4; + } + + g_system->getPaletteManager()->setPalette(tmp, first, numreg); if (slow) waitTOF(); -- cgit v1.2.3