fix widget_animator_time_elapse

This commit is contained in:
xianjimli 2020-02-21 17:31:33 +08:00
parent ab568c79a6
commit 8429d062f3
2 changed files with 3 additions and 1 deletions

View File

@ -7,6 +7,7 @@
* 修复SDL 警告(感谢智明提供补丁)。
* 完善 systembar 支持动态改变窗口的title和closable属性。
* 修复 list\_view\_h 中spacing属性类型的问题感谢尧燊提供补丁
* 修复 widget\_animator\_time\_elapse中的问题感谢朝泽提供补丁
* 2020/02/20
* 增加文档《如何集成第三方库》

View File

@ -73,7 +73,8 @@ ret_t widget_animator_time_elapse(widget_animator_t* animator, uint32_t delta_ti
animator->delay = delay;
return RET_OK;
} else {
animator->now = -elapsed_time;
elapsed_time = -delay;
animator->now = 0;
animator->delay = 0;
animator->start_time = 0;
}