update to the new font desciption

This commit is contained in:
Gabor Kiss-Vamosi
2017-09-27 13:05:35 +02:00
parent 1bbe6e1068
commit ebfe8fbfd4
4 changed files with 19 additions and 17 deletions

View File

@@ -288,7 +288,7 @@ void lv_draw_label(const area_t * cords_p,const area_t * mask_p, const lv_style_
if((flag & TXT_FLAG_RECOLOR) != 0) {
if(letter == TXT_RECOLOR_CMD) {
if(cmd_state == CMD_STATE_WAIT) { /*Start char*/
par_start = i + txt_utf8_size(&txt[i]);
par_start = i + txt_utf8_size(txt[i]);
cmd_state = CMD_STATE_PAR;
continue;
} else if(cmd_state == CMD_STATE_PAR) { /*Other start char in parameter escaped cmd. char */