From mcufont upstream: Fix inconsistency between UTF8 and other encodings
This commit is contained in:
parent
0ee1b20451
commit
99642e2a99
1 changed files with 8 additions and 3 deletions
|
@ -75,11 +75,16 @@ void mf_rewind(mf_str *str)
|
|||
|
||||
#else
|
||||
|
||||
mf_char mf_getchar(mf_str *str) {
|
||||
return *(*str)++;
|
||||
mf_char mf_getchar(mf_str *str)
|
||||
{
|
||||
if (!(**str))
|
||||
return 0;
|
||||
else
|
||||
return *(*str)++;
|
||||
}
|
||||
|
||||
void mf_rewind(mf_str *str) {
|
||||
void mf_rewind(mf_str *str)
|
||||
{
|
||||
(*str)--;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue