diff options
Diffstat (limited to 'engines/kyra/lol.cpp')
-rw-r--r-- | engines/kyra/lol.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/kyra/lol.cpp b/engines/kyra/lol.cpp index 63b0e63f62..9f50da5d50 100644 --- a/engines/kyra/lol.cpp +++ b/engines/kyra/lol.cpp @@ -1761,10 +1761,12 @@ void LoLEngine::createGfxTables() { Palette tpal(256); if (_flags.use16ColorMode) { static const uint8 colTbl[] = { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F }; - uint8 *p = _screen->getPalette(0).getData(); - tpal.fill(0, 256, 0xff); + uint8 *p = _screen->getPalette(0).getData(); uint8 *d = tpal.getData(); + + _res->loadFileToBuf("LOL.NOL", p, 48); + for (int i = 15; i >= 0; i--) { d[colTbl[i] * 3 + 2] = p[i * 3 + 2]; d[colTbl[i] * 3 + 1] = p[i * 3 + 1]; @@ -1772,7 +1774,7 @@ void LoLEngine::createGfxTables() { } _screen->generateTruelightTables(colTbl, 16, tpal, tpal, _trueLightTable1, _trueLightTable2, 80); - _screen->loadPalette("lol.nol", _screen->getPalette(0)); + _screen->loadPalette("LOL.NOL", _screen->getPalette(0)); } else { _screen->loadPalette("fxpal.col", tpal); _screen->loadBitmap("fxpal.shp", 3, 3, 0); |