aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/lol.cpp
diff options
context:
space:
mode:
authorFlorian Kagerer2009-09-19 23:51:19 +0000
committerFlorian Kagerer2009-09-19 23:51:19 +0000
commit5acbc3c4828c5e7cbf048caf17383e8c7db03a78 (patch)
tree967a40f86aedc9a3ce25838a599209f20c831e43 /engines/kyra/lol.cpp
parentea2b6d12dca199eece9b9a8e9ecc9d877d5b5aa4 (diff)
downloadscummvm-rg350-5acbc3c4828c5e7cbf048caf17383e8c7db03a78.tar.gz
scummvm-rg350-5acbc3c4828c5e7cbf048caf17383e8c7db03a78.tar.bz2
scummvm-rg350-5acbc3c4828c5e7cbf048caf17383e8c7db03a78.zip
LOL/PC-98: fixed block drawing (colors are still wrong)
svn-id: r44198
Diffstat (limited to 'engines/kyra/lol.cpp')
-rw-r--r--engines/kyra/lol.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/kyra/lol.cpp b/engines/kyra/lol.cpp
index 74fce1e8fa..449610d382 100644
--- a/engines/kyra/lol.cpp
+++ b/engines/kyra/lol.cpp
@@ -158,6 +158,7 @@ LoLEngine::LoLEngine(OSystem *system, const GameFlags &flags) : KyraEngine_v1(sy
_lampEffect = _brightness = _lampOilStatus = 0;
_lampStatusSuspended = false;
+ _blockBrightness = 0;
_tempBuffer5120 = 0;
_flyingObjects = 0;
_monsters = 0;
@@ -799,8 +800,8 @@ void LoLEngine::startup() {
static const uint8 colTable3[] = { 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0xFF };
for (int i = 0; i < 16; i++) {
- _screen->_paletteOverlay2[colTable3[i]] = colTable1[i];
- _screen->_paletteOverlay1[colTable3[i]] = colTable2[i];
+ _screen->_paletteOverlay1[colTable3[i]] = colTable1[i];
+ _screen->_paletteOverlay2[colTable3[i]] = colTable2[i];
}
} else {
@@ -1709,7 +1710,7 @@ void LoLEngine::generateBrightnessPalette(const Palette &src, Palette &dst, int
modifier >>= 1;
if (modifier)
modifier--;
- brightness = 16 * modifier;
+ _blockBrightness = 16 * modifier;
} else {
_screen->loadSpecialColors(dst);