mirror of
https://github.com/lvgl/lvgl.git
synced 2025-02-04 07:13:00 +08:00
lv_img bugfix: image not refreshed when upscale set
This commit is contained in:
parent
9a1b8d0712
commit
b2aa49a5b4
@ -252,6 +252,9 @@ void lv_img_set_upscale(lv_obj_t * img, bool en)
|
|||||||
lv_img_ext_t * ext = lv_obj_get_ext(img);
|
lv_img_ext_t * ext = lv_obj_get_ext(img);
|
||||||
|
|
||||||
ext->upscale = (en == false ? 0 : 1);
|
ext->upscale = (en == false ? 0 : 1);
|
||||||
|
|
||||||
|
/*Refresh the image with the new size*/
|
||||||
|
lv_img_set_file(img, ext->fn);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*=====================
|
/*=====================
|
||||||
|
Loading…
x
Reference in New Issue
Block a user