summaryrefslogtreecommitdiff
path: root/include/JSystem/JUtility
diff options
context:
space:
mode:
authorhatal175 <hatal175@users.noreply.github.com>2023-12-28 22:45:53 +0200
committerGitHub <noreply@github.com>2023-12-28 22:45:53 +0200
commit402666242bcd3d14ecf710bebd4f74a566db7bbb (patch)
tree1d97282f86ef1b8c25dbe4d292a74ffe0a4d8964 /include/JSystem/JUtility
parent3b7c793ac9089b6e4d5d8357f62df4d7b9da7500 (diff)
work on d_msg_class and JUTResFont (#2015)
* JUTResFont - Set symbols on * Work on d_msg_class
Diffstat (limited to 'include/JSystem/JUtility')
-rw-r--r--include/JSystem/JUtility/JUTFont.h12
1 files changed, 9 insertions, 3 deletions
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);