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

lv_img bugfix: image not refreshed when upscale set

This commit is contained in:
Gabor 2017-01-09 10:11:59 +01:00
parent 9a1b8d0712
commit b2aa49a5b4

View File

@ -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);
ext->upscale = (en == false ? 0 : 1);
/*Refresh the image with the new size*/
lv_img_set_file(img, ext->fn);
}
/*=====================