mirror of
https://github.com/lvgl/lvgl.git
synced 2026-06-08 11:22:57 +08:00
Update lv_txt.c
fix lv_txt_ut8_size() with 4 byte characters.
This commit is contained in:
+1
-1
@@ -305,7 +305,7 @@ uint8_t lv_txt_utf8_size(uint8_t c)
|
||||
if((c & 0x80) == 0) return 1;
|
||||
else if((c & 0xE0) == 0xC0) return 2;
|
||||
else if((c & 0xF0) == 0xE0) return 3;
|
||||
else if((c & 0xF1) == 0xF0) return 4;
|
||||
else if((c & 0xF8) == 0xF0) return 4;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user