mirror of
https://github.com/lvgl/lvgl.git
synced 2025-02-04 07:13:00 +08:00
fix(draw_label): fix draw label missing format mapping (#5413)
This commit is contained in:
parent
838cbd6ae6
commit
356f3ed018
@ -423,6 +423,9 @@ static void draw_letter(lv_draw_unit_t * draw_unit, lv_draw_glyph_dsc_t * dsc,
|
|||||||
else if(g.bpp == LV_IMGFONT_BPP) {
|
else if(g.bpp == LV_IMGFONT_BPP) {
|
||||||
dsc->format = LV_DRAW_LETTER_BITMAP_FORMAT_IMAGE;
|
dsc->format = LV_DRAW_LETTER_BITMAP_FORMAT_IMAGE;
|
||||||
}
|
}
|
||||||
|
else if(g.bpp == LV_VECFONT_BPP) {
|
||||||
|
dsc->format = LV_DRAW_LETTER_VECTOR_FORMAT;
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
dsc->format = LV_DRAW_LETTER_BITMAP_FORMAT_A8;
|
dsc->format = LV_DRAW_LETTER_BITMAP_FORMAT_A8;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user