From 402666242bcd3d14ecf710bebd4f74a566db7bbb Mon Sep 17 00:00:00 2001 From: hatal175 Date: Thu, 28 Dec 2023 22:45:53 +0200 Subject: work on d_msg_class and JUTResFont (#2015) * JUTResFont - Set symbols on * Work on d_msg_class --- include/JSystem/JUtility/JUTFont.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'include/JSystem/JUtility') diff --git a/include/JSystem/JUtility/JUTFont.h b/include/JSystem/JUtility/JUTFont.h index e56c34cfe3..55bd5d71fa 100644 --- a/include/JSystem/JUtility/JUTFont.h +++ b/include/JSystem/JUtility/JUTFont.h @@ -83,9 +83,15 @@ public: /* 0x3C */ virtual ResFONT* getResFont() const = 0; /* 0x40 */ virtual bool isLeadByte(int a1) const = 0; - static bool isLeadByte_1Byte(int b); - static bool isLeadByte_2Byte(int b); - static bool isLeadByte_ShiftJIS(int b); + static bool isLeadByte_1Byte(int b) { + return false; + } + static bool isLeadByte_2Byte(int b) { + return true; + } + static bool isLeadByte_ShiftJIS(int b) { + return (b >= 0x81 && b <= 0x9f) || (b >= 0xe0 && b <= 0xfc); + } void initialize_state(); void setCharColor(JUtility::TColor col1); -- cgit v1.2.3