diff options
author | Nipun Garg | 2019-06-24 01:10:30 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:58 +0200 |
commit | 8419b988556905d912133286fb85b43fcf0bf4d5 (patch) | |
tree | 7673086d8e8f7aa4ae9a4163676b10388036fbae | |
parent | 9671f336cfe4c581770143af6585983b53d96e77 (diff) | |
download | scummvm-rg350-8419b988556905d912133286fb85b43fcf0bf4d5.tar.gz scummvm-rg350-8419b988556905d912133286fb85b43fcf0bf4d5.tar.bz2 scummvm-rg350-8419b988556905d912133286fb85b43fcf0bf4d5.zip |
HDB: Add picture debugging code
-rw-r--r-- | engines/hdb/draw-manager.h | 3 | ||||
-rw-r--r-- | engines/hdb/window.cpp | 14 |
2 files changed, 16 insertions, 1 deletions
diff --git a/engines/hdb/draw-manager.h b/engines/hdb/draw-manager.h index e70b673241..3b908e7bd2 100644 --- a/engines/hdb/draw-manager.h +++ b/engines/hdb/draw-manager.h @@ -186,9 +186,10 @@ public: void draw(int x, int y); void drawMasked(int x, int y); + uint _width, _height; + private: - uint _width, _height; char _name[64]; Graphics::ManagedSurface _surface; diff --git a/engines/hdb/window.cpp b/engines/hdb/window.cpp index d7221fcc57..d2dc204f76 100644 --- a/engines/hdb/window.cpp +++ b/engines/hdb/window.cpp @@ -137,6 +137,20 @@ void Window::openDialog(const char *title, int tileIndex, const char *string, in void Window::drawDialog() { +#if 0 + _gfxTL->drawMasked(0, 0); + _gfxTM->drawMasked(_gfxTL->_width, 0); + _gfxTR->drawMasked(_gfxTL->_width + _gfxTM->_width, 0); + + _gfxL->drawMasked(0, _gfxTL->_height); + _gfxM->drawMasked(_gfxL->_width, _gfxTL->_height); + _gfxR->drawMasked(_gfxL->_width + _gfxM->_width, _gfxTL->_height); + + _gfxBL->drawMasked(0, _gfxTL->_height + _gfxL->_height); + _gfxBM->drawMasked(_gfxBL->_width, _gfxTL->_height + _gfxL->_height); + _gfxBR->drawMasked(_gfxBL->_width + _gfxBM->_width, _gfxTL->_height + _gfxL->_height); +#endif + if (g_hdb->getActionMode()) warning("STUB: drawDialog: Draw Player Weapon"); |