Refectoring: Add is_[12]byte_message() helper functions

This commit is contained in:
kichikuou
2020-12-20 14:44:08 +09:00
parent 33a0595016
commit 067e1e23bd
8 changed files with 23 additions and 19 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ void AGS::draw_text(const char* string)
while(string[p] != '\0') {
// 文字コード取得
uint16 code = (uint8)string[p++];
if((0x81 <= code && code <= 0x9f) || 0xe0 <= code) {
if(is_2byte_message(code)) {
code = (code << 8) | (uint8)string[p++];
}
if(draw_hankaku) {