1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

font_fmt_txt: cache fix

This commit is contained in:
Gabor Kiss-Vamosi 2019-06-14 06:24:02 +02:00
parent f69dfce051
commit 7cbc2d0e7f

View File

@ -114,7 +114,7 @@ static uint32_t get_glyph_dsc_id(const lv_font_t * font, uint32_t letter)
lv_font_fmt_txt_dsc_t * fdsc = (lv_font_fmt_txt_dsc_t *) font->dsc;
/*Check the chacge first*/
if(letter == fdsc->last_letter) fdsc->last_glyph_id;
if(letter == fdsc->last_letter) return fdsc->last_glyph_id;
uint16_t i;
for(i = 0; i < fdsc->cmap_num; i++) {