aboutsummaryrefslogtreecommitdiff
path: root/engines/saga
diff options
context:
space:
mode:
authorFilippos Karapetis2017-08-20 18:02:37 +0300
committerFilippos Karapetis2017-08-20 18:02:37 +0300
commitd139d65c8020f92a96e41d4c05972a2a00bbd7a0 (patch)
treee422ba5b47aeb46a3bad4314e58e3a20e29925f2 /engines/saga
parentca8785fdbf8dd458ac27ca1865b871c0618ebf79 (diff)
downloadscummvm-rg350-d139d65c8020f92a96e41d4c05972a2a00bbd7a0.tar.gz
scummvm-rg350-d139d65c8020f92a96e41d4c05972a2a00bbd7a0.tar.bz2
scummvm-rg350-d139d65c8020f92a96e41d4c05972a2a00bbd7a0.zip
SAGA: Fix the conversation panel background color in IHNM
Diffstat (limited to 'engines/saga')
-rw-r--r--engines/saga/interface.cpp16
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;