mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
lv_img: symbol bugfix
This commit is contained in:
parent
071343da5e
commit
21f21dbe75
@ -150,7 +150,9 @@ void lv_img_set_src(lv_obj_t * img, const void * src_img)
|
|||||||
strcpy(new_str, src_img);
|
strcpy(new_str, src_img);
|
||||||
ext->src = new_str;
|
ext->src = new_str;
|
||||||
}
|
}
|
||||||
} else if(src_type == LV_IMG_SRC_SYMBOL) {
|
}
|
||||||
|
|
||||||
|
if(src_type == LV_IMG_SRC_SYMBOL) {
|
||||||
/*`lv_img_dsc_get_info` couldn't set the with and height of a font so set it here*/
|
/*`lv_img_dsc_get_info` couldn't set the with and height of a font so set it here*/
|
||||||
lv_style_t * style = lv_img_get_style(img);
|
lv_style_t * style = lv_img_get_style(img);
|
||||||
lv_point_t size;
|
lv_point_t size;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user