aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBendegúz Nagy2016-06-21 20:27:57 +0200
committerBendegúz Nagy2016-08-26 23:02:22 +0200
commit4b83ebc0da2a2bb46c2435ddfe96c333b7cbd8ed (patch)
treef0c568aaa64443f113764f750d41e31d13d45ed3
parentafd844b6de922f27e22a66e075c273dc7a586ac0 (diff)
downloadscummvm-rg350-4b83ebc0da2a2bb46c2435ddfe96c333b7cbd8ed.tar.gz
scummvm-rg350-4b83ebc0da2a2bb46c2435ddfe96c333b7cbd8ed.tar.bz2
scummvm-rg350-4b83ebc0da2a2bb46c2435ddfe96c333b7cbd8ed.zip
DM: Add fix gDungeonViewport, some comments
-rw-r--r--engines/dm/dm.cpp2
-rw-r--r--engines/dm/gfx.cpp2
-rw-r--r--engines/dm/menus.h2
3 files changed, 4 insertions, 2 deletions
diff --git a/engines/dm/dm.cpp b/engines/dm/dm.cpp
index c1d7e14c0d..3a1a951c2b 100644
--- a/engines/dm/dm.cpp
+++ b/engines/dm/dm.cpp
@@ -171,6 +171,7 @@ void DMEngine::gameloop() {
warning("DUMMY CODE: setting InventoryMan::_inventoryChampionOrdinal to zero");
_inventoryMan->_inventoryChampionOrdinal = 0;
+ warning("DUMMY CODE: clearing screen to black");
while (true) {
_stopWaitingForPlayerInput = false;
//do {
@@ -179,6 +180,7 @@ void DMEngine::gameloop() {
//} while (!_stopWaitingForPlayerInput || !_gameTimeTicking);
if (!_inventoryMan->_inventoryChampionOrdinal && !_championMan->_partyIsSleeping) {
+ _displayMan->clearScreen(kColorBlack); // dummy code
_displayMan->drawDungeon(_dungeonMan->_currMap._partyDir, _dungeonMan->_currMap._partyPosX, _dungeonMan->_currMap._partyPosY);
}
// DUMMY CODE: next line
diff --git a/engines/dm/gfx.cpp b/engines/dm/gfx.cpp
index 28fb63cac6..6ddff20398 100644
--- a/engines/dm/gfx.cpp
+++ b/engines/dm/gfx.cpp
@@ -548,7 +548,7 @@ byte gPalChangesCreature_D2[16] = {0, 10, 20, 30, 40, 30, 60, 70, 50, 0, 0, 110,
Viewport gDefultViewPort = {0, 0};
// TODO: I guessed the numbers
-Viewport gDungeonViewport = {0, 64}; // @ G0296_puc_Bitmap_Viewport
+Viewport gDungeonViewport = {0, 33}; // @ G0296_puc_Bitmap_Viewport
byte gPalChangesNoChanges[16] = {0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150}; // @ G0017_auc_Graphic562_PaletteChanges_NoChanges
diff --git a/engines/dm/menus.h b/engines/dm/menus.h
index 52b99ab771..de0c43ac74 100644
--- a/engines/dm/menus.h
+++ b/engines/dm/menus.h
@@ -15,7 +15,7 @@ public:
void clearActingChampion(); // @ F0388_MENUS_ClearActingChampion
void drawActionIcon(ChampionIndex championIndex); // @ F0386_MENUS_DrawActionIcon
- void drawMovementArrows();
+ void drawMovementArrows(); // @ F0395_MENUS_DrawMovementArrows
void drawDisabledMenu(); // @ F0456_START_DrawDisabledMenus
};