Corrected some of the colors in the save/load dialogs in IHNM

svn-id: r28648
This commit is contained in:
Filippos Karapetis 2007-08-18 01:59:18 +00:00
parent aa8db3f74f
commit 0566bef991
3 changed files with 15 additions and 5 deletions

View File

@ -960,7 +960,10 @@ void Interface::drawOption() {
rect2 = rect;
fontHeight = _vm->_font->getHeight(kKnownFontSmall);
for (j = 0; j < _vm->getDisplayInfo().optionSaveFileVisible; j++) {
bgColor = kITEColorDarkGrey0C;
if (_vm->getGameType() == GType_ITE)
bgColor = kITEColorDarkGrey0C;
else
bgColor = kIHNMColorBlack;
fgColor = kITEColorBrightWhite;
idx = j + _optionSaveFileTop;
@ -1233,10 +1236,10 @@ void Interface::drawTextInput(Surface *ds, InterfacePanel *panel, PanelButton *p
while ((ch[0] = _textInputString[i++]) != 0) {
rect.setWidth(_vm->_font->getStringWidth(kKnownFontSmall, ch, 0, kFontNormal));
if ((i == _textInputPos) && _textInput) {
fgColor = kITEColorBlack;
ds->fillRect(rect, kITEColorWhite);
fgColor = _vm->KnownColor2ColorId(kKnownColorBlack);
ds->fillRect(rect, _vm->KnownColor2ColorId(kKnownColorWhite));
} else {
fgColor = kITEColorWhite;
fgColor = _vm->KnownColor2ColorId(kKnownColorWhite);
}
textPoint.x = rect.left;
textPoint.y = rect.top + 1;
@ -1247,7 +1250,7 @@ void Interface::drawTextInput(Surface *ds, InterfacePanel *panel, PanelButton *p
if (_textInput && (_textInputPos >= i)) {
ch[0] = ' ';
rect.setWidth(_vm->_font->getStringWidth(kKnownFontSmall, ch, 0, kFontNormal));
ds->fillRect(rect, kITEColorWhite);
ds->fillRect(rect, _vm->KnownColor2ColorId(kKnownColorWhite));
}
}

View File

@ -428,6 +428,9 @@ ColorId SagaEngine::KnownColor2ColorId(KnownColor knownColor) {
case (kKnownColorBrightWhite):
colorId = kITEColorBrightWhite;
break;
case (kKnownColorWhite):
colorId = kITEColorWhite;
break;
case (kKnownColorBlack):
colorId = kITEColorBlack;
break;
@ -458,6 +461,9 @@ ColorId SagaEngine::KnownColor2ColorId(KnownColor knownColor) {
case (kKnownColorBrightWhite):
colorId = kITEColorBrightWhite;
break;
case (kKnownColorWhite):
colorId = kITEColorBrightWhite;
break;
case (kKnownColorBlack):
colorId = kIHNMColorBlack;
break;

View File

@ -441,6 +441,7 @@ enum ColorId {
enum KnownColor {
kKnownColorTransparent,
kKnownColorBrightWhite,
kKnownColorWhite,
kKnownColorBlack,
kKnownColorSubtitleTextColor,