image decoder bugfixes

This commit is contained in:
Gabor Kiss-Vamosi
2018-08-20 22:25:28 +02:00
parent 9d844ef113
commit 1ec7d264cf
4 changed files with 121 additions and 54 deletions

View File

@@ -167,7 +167,7 @@ void lv_img_set_src(lv_obj_t * img, const void * src_img)
ext->src_type = src_type;
ext->w = header.w;
ext->h = header.h;
ext->cf = header.color_format;
ext->cf = header.cf;
if(lv_img_get_auto_size(img) != false) {
lv_obj_set_size(img, ext->w, ext->h);