1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

Use define to enable or not double animation on preload

This commit is contained in:
AloyseTech 2018-11-14 23:01:22 +01:00
parent 624939f6ba
commit 7b9710aa4e

View File

@ -93,6 +93,7 @@ lv_obj_t * lv_preload_create(lv_obj_t * par, const lv_obj_t * copy)
a.repeat_pause = 0;
lv_anim_create(&a);
#if LV_PRELOAD_DOUBLE_ANIM
lv_anim_t b;
b.var = new_preload;
b.start = ext->arc_length;
@ -107,7 +108,8 @@ lv_obj_t * lv_preload_create(lv_obj_t * par, const lv_obj_t * copy)
b.repeat = 1;
b.repeat_pause = 0;
lv_anim_create(&b);
#endif
#endif // LV_PRELOAD_DOUBLE_ANIM
#endif // USE_LV_ANIMATION
/*Init the new pre loader pre loader*/
if(copy == NULL) {