test fix warning and docs build error

This commit is contained in:
Gabor Kiss-Vamosi 2021-10-04 14:55:27 +02:00
parent 18f61c5f77
commit d908f31f8f
2 changed files with 12 additions and 1 deletions

View File

@ -26,5 +26,16 @@ void lv_example_freetype_1(void)
lv_label_set_text(label, "Hello world\nI'm a font created with FreeType");
lv_obj_center(label);
}
#else
void lv_example_freetype_1(void)
{
/*TODO
*fallback for online examples*/
lv_obj_t * label = lv_label_create(lv_scr_act());
lv_label_set_text(label, "FreeType is not installed");
lv_obj_center(label);
}
#endif

View File

@ -145,7 +145,7 @@ static void next_frame_task_cb(lv_timer_t * t)
}
}
gd_render_frame(gifobj->gif, gifobj->imgdsc.data);
gd_render_frame(gifobj->gif, (uint8_t *)gifobj->imgdsc.data);
lv_img_cache_invalidate_src(lv_img_get_src(obj));
lv_obj_invalidate(obj);