From mcufont upstream: Fix inconsistency between UTF8 and other encodings

ugfx_release_2.6
inmarket 2013-07-30 14:19:50 +10:00
parent 0ee1b20451
commit 99642e2a99
1 changed files with 8 additions and 3 deletions

View File

@ -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)--;
}