aboutsummaryrefslogtreecommitdiff
path: root/engines/dm/dm.cpp
diff options
context:
space:
mode:
authorBendegúz Nagy2016-08-11 19:21:23 +0200
committerBendegúz Nagy2016-08-26 23:02:22 +0200
commit5fb1b3e808730bfca8856ebd7b60b20081bae1b3 (patch)
tree3a22f50e34412193676647aecedfba719fcaea98 /engines/dm/dm.cpp
parent6113b75ca9ca7d288cc0ea8e171ee6c44ca90e1e (diff)
downloadscummvm-rg350-5fb1b3e808730bfca8856ebd7b60b20081bae1b3.tar.gz
scummvm-rg350-5fb1b3e808730bfca8856ebd7b60b20081bae1b3.tar.bz2
scummvm-rg350-5fb1b3e808730bfca8856ebd7b60b20081bae1b3.zip
DM: Add missing code related to palettes
Diffstat (limited to 'engines/dm/dm.cpp')
-rw-r--r--engines/dm/dm.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/dm/dm.cpp b/engines/dm/dm.cpp
index 59151a9a99..b6b71fc0d5 100644
--- a/engines/dm/dm.cpp
+++ b/engines/dm/dm.cpp
@@ -279,8 +279,10 @@ void DMEngine::f463_initializeGame() {
void DMEngine::f448_initMemoryManager() {
warning(false, "STUB METHOD: f448_initMemoryManager");
_displayMan->f508_buildPaletteChangeCopperList(gK57_PalSwoosh, gK57_PalSwoosh);
- for (uint16 i = 0; i < 16; ++i)
+ for (uint16 i = 0; i < 16; ++i) {
_displayMan->_g347_paletteTopAndBottomScreen[i] = g21_PalDungeonView[0][i];
+ _displayMan->_g346_paletteMiddleScreen[i] = g21_PalDungeonView[0][i];
+ }
}
void DMEngine::f462_startGame() {
@@ -307,6 +309,7 @@ void DMEngine::f462_startGame() {
f3_processNewPartyMap(_dungeonMan->_g309_partyMapIndex);
if (!_g298_newGame) {
+ _displayMan->f436_STARTEND_FadeToPalette(_displayMan->_g347_paletteTopAndBottomScreen);
_displayMan->_g578_useByteBoxCoordinates = false;
f22_delay(1);
_displayMan->D24_fillScreenBox(boxScreenTop, k0_ColorBlack);