From aac7886ac937288cad4a9122a15c85903ce222bf Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Thu, 20 Dec 2007 19:17:00 +0000 Subject: [PATCH] Fix for bug #1851030 - "IHNM Spanish CD - Wrong Dialogs color" svn-id: r29929 --- engines/saga/interface.cpp | 18 +++++++++--------- engines/saga/saga.h | 5 +---- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/engines/saga/interface.cpp b/engines/saga/interface.cpp index 543e2dba9f0..4eeb62f422f 100644 --- a/engines/saga/interface.cpp +++ b/engines/saga/interface.cpp @@ -2118,7 +2118,7 @@ void Interface::drawButtonBox(Surface *ds, const Rect& rect, ButtonKind kind, bo break; default: cornerColor = 0x8b; - frameColor = (_vm->getGameType() == GType_ITE) ? kITEColorBlack : kIHNMColorBlack; + frameColor = _vm->KnownColor2ColorId(kKnownColorBlack); solidColor = fillColor = kITEColorLightBlue96; odl = kITEColorDarkBlue8a; our = kITEColorLightBlue94; @@ -2472,8 +2472,8 @@ void Interface::converseDisplayTextLines(Surface *ds) { bulletForegnd = kITEColorGreen; bulletBackgnd = kITEColorBlack; } else { - bulletForegnd = kITEColorBrightWhite; - bulletBackgnd = kIHNMColorBlack; + bulletForegnd = _vm->KnownColor2ColorId(kKnownColorBrightWhite); + bulletBackgnd = _vm->KnownColor2ColorId(kKnownColorBlack); bullet[0] = '>'; // different bullet in IHNM } @@ -2483,7 +2483,7 @@ void Interface::converseDisplayTextLines(Surface *ds) { if (_vm->getGameType() == GType_ITE) ds->drawRect(rect, kITEColorDarkGrey); //fill bullet place else - ds->drawRect(rect, kIHNMColorBlack); //fill bullet place + ds->drawRect(rect, _vm->KnownColor2ColorId(kKnownColorBlack)); //fill bullet place for (int i = 0; i < _vm->getDisplayInfo().converseTextLines; i++) { relPos = _converseStartPos + i; @@ -2497,16 +2497,16 @@ void Interface::converseDisplayTextLines(Surface *ds) { foregnd = kITEColorBrightWhite; backgnd = (!_vm->leftMouseButtonPressed()) ? kITEColorDarkGrey : kITEColorGrey; } else { - foregnd = kIHNMColorRed; - backgnd = (!_vm->leftMouseButtonPressed()) ? kIHNMColorRed : kIHNMColorRed; + foregnd = _vm->KnownColor2ColorId(kKnownColorVerbTextActive); + backgnd = _vm->KnownColor2ColorId(kKnownColorVerbTextActive); } } else { if (_vm->getGameType() == GType_ITE) { foregnd = kITEColorBlue; backgnd = kITEColorDarkGrey; } else { - foregnd = kITEColorBrightWhite; - backgnd = kIHNMColorBlack; + foregnd = _vm->KnownColor2ColorId(kKnownColorBrightWhite); + backgnd = _vm->KnownColor2ColorId(kKnownColorBlack); } } @@ -2530,7 +2530,7 @@ void Interface::converseDisplayTextLines(Surface *ds) { if (_vm->getGameType() == GType_ITE) _vm->_font->textDraw(kKnownFontSmall, ds, str, textPoint, foregnd, kITEColorBlack, kFontShadow); else - _vm->_font->textDraw(kKnownFontVerb, ds, str, textPoint, foregnd, kIHNMColorBlack, kFontShadow); + _vm->_font->textDraw(kKnownFontVerb, ds, str, textPoint, foregnd, _vm->KnownColor2ColorId(kKnownColorBlack), kFontShadow); } if (_converseStartPos != 0) { diff --git a/engines/saga/saga.h b/engines/saga/saga.h index a920a154c09..ac4e66ce7a2 100644 --- a/engines/saga/saga.h +++ b/engines/saga/saga.h @@ -443,10 +443,7 @@ enum ColorId { kITEColorLightBlue96 = 0x96, kITEColorGreen = 0xba, - kIHNMColorBlack = 0xfa, - kIHNMColorPortrait = 0xfe, - kIHNMColorWhite = 0x20, - kIHNMColorRed = 0x11 + kIHNMColorPortrait = 0xfe }; enum KnownColor {