From 5a0009cbabbdf26858947b9cd720867e15253577 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 26 Dec 2007 21:37:00 +0000 Subject: [PATCH] - Fixed: The FSpecialFont constructor copied the untranslated colors directly from the source palette instead of the font's identity map. SVN r646 (trunk) --- docs/rh-log.txt | 2 ++ src/v_font.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/rh-log.txt b/docs/rh-log.txt index 589123f11d..3920dc28fe 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -1,4 +1,6 @@ December 26, 2007 (Changes by Graf Zahl) +- Fixed: The FSpecialFont constructor copied the untranslated colors directly + from the source palette instead of the font's identity map. - Split off the entire translation code from r_draw.cpp into r_translate.cpp. - Moved the common code of ACS and DECORATE translation generation into the FRemapTable class. diff --git a/src/v_font.cpp b/src/v_font.cpp index 8c97c232cb..9ae1bf3d2b 100644 --- a/src/v_font.cpp +++ b/src/v_font.cpp @@ -1449,7 +1449,7 @@ FSpecialFont::FSpecialFont (const char *name, int first, int count, int *lumplis for (j = ActiveColors; j < TotalColors; ++j) { remap->Remap[j] = identity[j]; - remap->Palette[j] = GPalette.BaseColors[j]; + remap->Palette[j] = GPalette.BaseColors[identity[j]]; } } }