From 94e75b8b6d24f3ad0e0dc9f4e6e789948e31f48e Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sun, 22 Nov 2009 08:36:14 +0000 Subject: Fix charset palette in PCE version of Loom, based on information from Tobias. svn-id: r46064 --- engines/scumm/palette.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'engines/scumm/palette.cpp') diff --git a/engines/scumm/palette.cpp b/engines/scumm/palette.cpp index 1b0edd743d..467ed9617c 100644 --- a/engines/scumm/palette.cpp +++ b/engines/scumm/palette.cpp @@ -209,6 +209,17 @@ void colorPCEToRGB(uint16 color, byte *r, byte *g, byte *b) { *g = ((color >> 6) & 0x7) << 5; } +void ScummEngine::setPCETextPalette(uint8 color) { + const uint16 CHARSET_COLORS[16] = { + 0x0000, 0x0096, 0x0140, 0x0145, 0x0059, 0x002D, 0x00A8, 0x016D, + 0x0092, 0x016F, 0x01CD, 0x01DF, 0x00F7, 0x00B6, 0x01B0, 0x01B6 + }; + + byte r, g, b; + colorPCEToRGB(CHARSET_COLORS[color], &r, &g, &b); + setPalColor(15, r, g, b); +} + void ScummEngine::readPCEPalette(const byte **ptr, byte **dest, int numEntries) { byte r, g, b; byte msbs = 0; -- cgit v1.2.3