aboutsummaryrefslogtreecommitdiff
path: root/engines/dm/dm.cpp
diff options
context:
space:
mode:
authorBendegúz Nagy2016-08-11 16:06:06 +0200
committerBendegúz Nagy2016-08-26 23:02:22 +0200
commit94ba2fdb2bec8c0a9bf58ded78fd40f6b95aa28c (patch)
treebd23c56c747ce293f20a8c4f793c93db9d9c4641 /engines/dm/dm.cpp
parent37db95c33646a60218f8ed2c897473310a1c582b (diff)
downloadscummvm-rg350-94ba2fdb2bec8c0a9bf58ded78fd40f6b95aa28c.tar.gz
scummvm-rg350-94ba2fdb2bec8c0a9bf58ded78fd40f6b95aa28c.tar.bz2
scummvm-rg350-94ba2fdb2bec8c0a9bf58ded78fd40f6b95aa28c.zip
DM: Add partial fix of color palette
Diffstat (limited to 'engines/dm/dm.cpp')
-rw-r--r--engines/dm/dm.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/dm/dm.cpp b/engines/dm/dm.cpp
index 51be9d8167..59151a9a99 100644
--- a/engines/dm/dm.cpp
+++ b/engines/dm/dm.cpp
@@ -246,10 +246,9 @@ uint16 DMEngine::f30_getScaledProduct(uint16 val, uint16 scale, uint16 vale2) {
}
void DMEngine::f463_initializeGame() {
+ f448_initMemoryManager();
_displayMan->f479_loadGraphics();
_displayMan->f460_initializeGraphicData();
- warning(false, "Dummy code in f463_initializeGame, setting palette");
- _displayMan->loadPalette(g21_PalDungeonView[0]);
_displayMan->f94_loadFloorSet(k0_FloorSetStone);
_displayMan->f95_loadWallSet(k0_WallSetStone);
@@ -279,6 +278,7 @@ 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)
_displayMan->_g347_paletteTopAndBottomScreen[i] = g21_PalDungeonView[0][i];
}
@@ -319,7 +319,7 @@ void DMEngine::f462_startGame() {
_displayMan->D24_fillScreenBox(boxScreenBottom, k0_ColorBlack);
}
- warning(false, "TODO: build copper");
+ _displayMan->f508_buildPaletteChangeCopperList(g21_PalDungeonView[0], _displayMan->_g347_paletteTopAndBottomScreen);
_menuMan->f395_drawMovementArrows();
_championMan->f278_resetDataToStartGame();
_g301_gameTimeTicking = true;