diff options
Diffstat (limited to 'engines/titanic/pet_control/pet_conversations.cpp')
-rw-r--r-- | engines/titanic/pet_control/pet_conversations.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/titanic/pet_control/pet_conversations.cpp b/engines/titanic/pet_control/pet_conversations.cpp index 090952dbe2..76d293208b 100644 --- a/engines/titanic/pet_control/pet_conversations.cpp +++ b/engines/titanic/pet_control/pet_conversations.cpp @@ -88,7 +88,11 @@ bool CPetConversations::reset() { _textInput.setColor(col); _textInput.setLineColor(0, col); - warning("TODO: Setup log shaded palette?"); + // Replace the log colors with new 1st class ones + uint colors1[5], colors2[5]; + copyColors(2, colors1); + copyColors(1, colors2); + _log.remapColors(5, colors1, colors2); _log.setColor(getColor(2)); } @@ -479,4 +483,9 @@ CString CPetConversations::getActiveNPCName() const { return CString(); } +void CPetConversations::copyColors(uint tableNum, uint colors[5]) { + const uint *src = getColorTable(tableNum); + Common::copy(src, src + 5, colors); +} + } // End of namespace Titanic |