diff options
author | Filippos Karapetis | 2017-08-20 18:02:37 +0300 |
---|---|---|
committer | Filippos Karapetis | 2017-08-20 18:02:37 +0300 |
commit | d139d65c8020f92a96e41d4c05972a2a00bbd7a0 (patch) | |
tree | e422ba5b47aeb46a3bad4314e58e3a20e29925f2 | |
parent | ca8785fdbf8dd458ac27ca1865b871c0618ebf79 (diff) | |
download | scummvm-rg350-d139d65c8020f92a96e41d4c05972a2a00bbd7a0.tar.gz scummvm-rg350-d139d65c8020f92a96e41d4c05972a2a00bbd7a0.tar.bz2 scummvm-rg350-d139d65c8020f92a96e41d4c05972a2a00bbd7a0.zip |
SAGA: Fix the conversation panel background color in IHNM
-rw-r--r-- | engines/saga/interface.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/engines/saga/interface.cpp b/engines/saga/interface.cpp index 9dcc8d9137..e6b196c4cd 100644 --- a/engines/saga/interface.cpp +++ b/engines/saga/interface.cpp @@ -2533,10 +2533,12 @@ void Interface::converseDisplayTextLines() { char bullet[2] = { (char)0xb7, 0 }; - Rect rect(8, _vm->getDisplayInfo().converseTextLines * _vm->getDisplayInfo().converseTextHeight); - Point textPoint; assert(_conversePanel.buttonsCount >= 6); + Rect rect(8, _vm->getDisplayInfo().converseTextLines * _vm->getDisplayInfo().converseTextHeight); + rect.moveTo(_conversePanel.x + _conversePanel.buttons[0].xOffset, _conversePanel.y + _conversePanel.buttons[0].yOffset); + + Point textPoint; if (_vm->getGameId() == GID_ITE) { bulletForegnd = kITEColorGreen; @@ -2547,13 +2549,11 @@ void Interface::converseDisplayTextLines() { bullet[0] = '>'; // different bullet in IHNM } - rect.moveTo(_conversePanel.x + _conversePanel.buttons[0].xOffset, - _conversePanel.y + _conversePanel.buttons[0].yOffset); - if (_vm->getGameId() == GID_ITE) - _vm->_gfx->drawRect(rect, kITEColorDarkGrey); //fill bullet place - else - _vm->_gfx->drawRect(rect, _vm->KnownColor2ColorId(kKnownColorBlack)); //fill bullet place + _vm->_gfx->drawRect(rect, kITEColorDarkGrey); // fill bullet place + else if (_vm->getGameId() == GID_IHNM) + // TODO: Add these to IHNM_DisplayInfo? + _vm->_gfx->drawRect(Common::Rect(118, 345, 603, 463), _vm->KnownColor2ColorId(kKnownColorBlack)); // fill converse rect for (int i = 0; i < _vm->getDisplayInfo().converseTextLines; i++) { relPos = _converseStartPos + i; |