From 2366bff928065738c066151786555fce525191c6 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Fri, 19 May 2023 18:07:18 +0200 Subject: [PATCH] GRAPHICS: Fix glyph offsets for PC98 glyphs *9e --- graphics/sjis.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphics/sjis.cpp b/graphics/sjis.cpp index d6a601a3caf..980bda6f472 100644 --- a/graphics/sjis.cpp +++ b/graphics/sjis.cpp @@ -554,9 +554,9 @@ const uint8 *FontPC98::getCharData(uint16 ch) const { if (lo >= 0x3f && lo <= 0x7e) glyph += lo - 0x3f; - else if (lo >= 0x80 && lo <= 0x9d) + else if (lo >= 0x80 && lo <= 0x9e) glyph += lo - 0x80 + 64; - else if (lo >= 0x9e && lo <= 0xfc) + else if (lo >= 0x9f && lo <= 0xfc) glyph += lo - 0x9e + 96; else return nullptr;