SAGA: Fix the conversation panel background color in IHNM

This commit is contained in:
Filippos Karapetis 2017-08-20 18:02:37 +03:00
parent ca8785fdbf
commit d139d65c80

View File

@ -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;