diff options
author | Eugene Sandulenko | 2014-12-19 22:46:40 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2015-12-15 00:05:02 +0100 |
commit | bff3cc390f56defe9b2e7debc046e0a1673fe413 (patch) | |
tree | 51e04e7f02a7ae053d6a5c6e5f3acf7f462e27db /engines/lab | |
parent | 78b46fb026d0a504212d6600a12fabc2ad3231cb (diff) | |
download | scummvm-rg350-bff3cc390f56defe9b2e7debc046e0a1673fe413.tar.gz scummvm-rg350-bff3cc390f56defe9b2e7debc046e0a1673fe413.tar.bz2 scummvm-rg350-bff3cc390f56defe9b2e7debc046e0a1673fe413.zip |
LAB: Fix game palette
Diffstat (limited to 'engines/lab')
-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();
|