diff options
-rw-r--r-- | engines/lab/vga.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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();
|