aboutsummaryrefslogtreecommitdiff
path: root/engines/lab
diff options
context:
space:
mode:
authorEugene Sandulenko2014-12-19 22:46:40 +0100
committerEugene Sandulenko2015-12-15 00:05:02 +0100
commitbff3cc390f56defe9b2e7debc046e0a1673fe413 (patch)
tree51e04e7f02a7ae053d6a5c6e5f3acf7f462e27db /engines/lab
parent78b46fb026d0a504212d6600a12fabc2ad3231cb (diff)
downloadscummvm-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.cpp7
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();