aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNipun Garg2019-07-14 02:53:16 +0530
committerEugene Sandulenko2019-09-03 17:17:20 +0200
commit73414fdc4795f074ad3fe9023ca2695b17b1da0d (patch)
tree1866138021dc8701489b3e306138b18c2ac41e75
parent2c40e1ae365578a1b6913dd72460fb8dba55090d (diff)
downloadscummvm-rg350-73414fdc4795f074ad3fe9023ca2695b17b1da0d.tar.gz
scummvm-rg350-73414fdc4795f074ad3fe9023ca2695b17b1da0d.tar.bz2
scummvm-rg350-73414fdc4795f074ad3fe9023ca2695b17b1da0d.zip
HDB: Add _debugLogo
-rw-r--r--engines/hdb/hdb.cpp8
-rw-r--r--engines/hdb/hdb.h2
2 files changed, 10 insertions, 0 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp
index da9107afa0..13d44f2b03 100644
--- a/engines/hdb/hdb.cpp
+++ b/engines/hdb/hdb.cpp
@@ -118,6 +118,7 @@ bool HDBGame::init() {
_menu->init();
+ _debugLogo = _gfx->loadTile("icon_debug_logo");
_progressGfx = _gfx->loadPic(PIC_LOADBAR);
_progressMarkGfx = _gfx->loadPic(PIC_LOADSTAR);
_logoGfx = NULL;
@@ -285,6 +286,13 @@ void HDBGame::paint() {
break;
}
+ // Draw FPS on Screen in Debug Mode
+ if (_debugFlag == 1) {
+ debug(9, "STUB: Requires StartTiming() and EndTiming()");
+ } else if (_debugFlag == 2) {
+ _debugLogo->drawMasked(kScreenWidth - 32, 0);
+ }
+
_gfx->updateVideo();
}
diff --git a/engines/hdb/hdb.h b/engines/hdb/hdb.h
index 549eed3b02..cb6c1f1cda 100644
--- a/engines/hdb/hdb.h
+++ b/engines/hdb/hdb.h
@@ -316,6 +316,8 @@ private:
int _pauseFlag;
bool _cheating;
int _debugFlag;
+ Tile *_debugLogo;
+ int _dx, _dy; // DEBUG : for dragging map
char _currentMapname[64];
char _lastMapname[64];