mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-10-06 22:07:56 +03:00
Refectoring: Add is_[12]byte_message() helper functions
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user