From f81fd7b1cde3fe79b9e85ab93615be0000d813f9 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Sat, 9 Feb 2019 22:52:47 +0000 Subject: [PATCH] Fixed Japanese text --- src/Font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Font.cpp b/src/Font.cpp index 8c3401b8..561bb90a 100644 --- a/src/Font.cpp +++ b/src/Font.cpp @@ -58,7 +58,7 @@ static unsigned long UTF8ToCode(const unsigned char *string, unsigned int *bytes case 3: case 4: length = zero_bit; - charcode = (string[0] & (1 << (8 - zero_bit))) - 1; + charcode = string[0] & ((1 << (8 - zero_bit))) - 1; for (unsigned int i = 1; i < zero_bit; ++i) {