diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hdb/hdb.cpp | 8 | ||||
-rw-r--r-- | engines/hdb/hdb.h | 2 |
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]; |