diff options
author | Filippos Karapetis | 2007-08-18 01:59:18 +0000 |
---|---|---|
committer | Filippos Karapetis | 2007-08-18 01:59:18 +0000 |
commit | 0566bef99131925e5ca5a7d71bfadf4299b73c6e (patch) | |
tree | c5d07bd15827bc91be132a1e7d018addbce9588a /engines | |
parent | aa8db3f74fc6460087a919a79a380b5346d117d6 (diff) | |
download | scummvm-rg350-0566bef99131925e5ca5a7d71bfadf4299b73c6e.tar.gz scummvm-rg350-0566bef99131925e5ca5a7d71bfadf4299b73c6e.tar.bz2 scummvm-rg350-0566bef99131925e5ca5a7d71bfadf4299b73c6e.zip |
Corrected some of the colors in the save/load dialogs in IHNM
svn-id: r28648
Diffstat (limited to 'engines')
-rw-r--r-- | engines/saga/interface.cpp | 13 | ||||
-rw-r--r-- | engines/saga/saga.cpp | 6 | ||||
-rw-r--r-- | engines/saga/saga.h | 1 |
3 files changed, 15 insertions, 5 deletions
diff --git a/engines/saga/interface.cpp b/engines/saga/interface.cpp index 7189dd8050..8733d35cb1 100644 --- a/engines/saga/interface.cpp +++ b/engines/saga/interface.cpp @@ -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)); } } diff --git a/engines/saga/saga.cpp b/engines/saga/saga.cpp index 76731c201a..2c064258d2 100644 --- a/engines/saga/saga.cpp +++ b/engines/saga/saga.cpp @@ -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; diff --git a/engines/saga/saga.h b/engines/saga/saga.h index 43952fe564..b228c26b01 100644 --- a/engines/saga/saga.h +++ b/engines/saga/saga.h @@ -441,6 +441,7 @@ enum ColorId { enum KnownColor { kKnownColorTransparent, kKnownColorBrightWhite, + kKnownColorWhite, kKnownColorBlack, kKnownColorSubtitleTextColor, |