summaryrefslogtreecommitdiff
path: root/include/JSystem/JUtility
diff options
context:
space:
mode:
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);