mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
lv_label: Added initial delay to LV_LABEL_LONG_ROLL_CIRC
This commit is contained in:
parent
eb70f39e42
commit
ff6b6725a5
@ -886,9 +886,7 @@ static void lv_label_refr_text(lv_obj_t * label)
|
||||
anim.path = lv_anim_path_linear;
|
||||
anim.playback_pause =
|
||||
(((lv_font_get_width(style->text.font, ' ') + style->text.letter_space) * 1000) /
|
||||
ext->anim_speed) *
|
||||
LV_LABEL_WAIT_CHAR_COUNT;
|
||||
;
|
||||
ext->anim_speed) * LV_LABEL_WAIT_CHAR_COUNT;
|
||||
anim.repeat_pause = anim.playback_pause;
|
||||
anim.act_time = -anim.playback_pause;
|
||||
|
||||
@ -925,7 +923,9 @@ static void lv_label_refr_text(lv_obj_t * label)
|
||||
anim.repeat = 1;
|
||||
anim.playback = 0;
|
||||
anim.start = 0;
|
||||
anim.act_time = 0;
|
||||
anim.act_time =
|
||||
-(((lv_font_get_width(style->text.font, ' ') + style->text.letter_space) * 1000) /
|
||||
ext->anim_speed) * LV_LABEL_WAIT_CHAR_COUNT;
|
||||
anim.end_cb = NULL;
|
||||
anim.path = lv_anim_path_linear;
|
||||
anim.playback_pause = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user