From e8ef680400cf1d7e406bdf8793019a624f4f1d08 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Sat, 4 Feb 2012 22:16:20 +0100 Subject: TOUCHE: Add two missing accented letters to Spanish charset. The A-acute, I-acute, O-acute and U-acute seem to be missing from the font, and are now all remapped to their unaccented ASCII variants. I and A were added by 303333352a3, and this patch adds O and U. This is assuming the CP850 encoding, which is not entirely verified. See bugs #2040311 and #3483383. --- engines/touche/staticres.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'engines/touche/staticres.cpp') diff --git a/engines/touche/staticres.cpp b/engines/touche/staticres.cpp index f7b1482f80..f35845e881 100644 --- a/engines/touche/staticres.cpp +++ b/engines/touche/staticres.cpp @@ -887,6 +887,8 @@ const uint8 Graphics::_freGerFontData[] = { }; // spanish charset differs from original executable, see tracker item #2040311. +// We remap missing accented upper case letters from CP850 to their unaccented +// ASCII variants. Specifically, 0xB5 -> A, 0xD6 -> I, 0xE0 -> O, 0xE9 -> U. const uint16 Graphics::_spaFontOffs[] = { 0x0000, 0x0007, 0x0024, 0x0043, 0x0072, 0x00AD, 0x00E0, 0x0113, 0x0124, 0x0141, 0x015E, 0x0191, 0x01C4, 0x01E3, 0x01F8, 0x0215, 0x0232, 0x0269, 0x0286, 0x02BD, @@ -907,7 +909,8 @@ const uint16 Graphics::_spaFontOffs[] = { 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0703, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, - 0x0000, 0x0000, 0x0000, 0x1954 + 0x0000, 0x0000, 0x0627, 0x1954, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + 0x0000, 0x097D }; const int Graphics::_spaFontSize = ARRAYSIZE(Graphics::_spaFontOffs); -- cgit v1.2.3