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:
parent
624939f6ba
commit
7b9710aa4e
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user