mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-02 03:58:33 +08:00
improve gif fix issue #437
This commit is contained in:
parent
c5a3bb091a
commit
d84a307552
@ -4,6 +4,7 @@
|
||||
* 完善 graphic\_buffer\_default
|
||||
* 增加 tk\_mem\_is\_valid\_addr
|
||||
* 完善 edit 注释(感谢俊杰提供补丁)。
|
||||
* gif 隐藏后不再刷新。
|
||||
* 完善 ui loader(感谢 dog2nd_Zhao 提供补丁)。
|
||||
|
||||
* 2020/06/30
|
||||
|
@ -31,7 +31,9 @@ static ret_t gif_image_on_timer(const timer_info_t* info) {
|
||||
return_value_if_fail(image != NULL, RET_BAD_PARAMS);
|
||||
|
||||
image->index = 0;
|
||||
if (WIDGET(image)->visible) {
|
||||
widget_invalidate_force(WIDGET(image), NULL);
|
||||
}
|
||||
|
||||
return RET_REPEAT;
|
||||
}
|
||||
@ -41,7 +43,9 @@ static ret_t gif_image_on_timer(const timer_info_t* info) {
|
||||
return_value_if_fail(image != NULL, RET_BAD_PARAMS);
|
||||
|
||||
image->index++;
|
||||
if (WIDGET(image)->visible) {
|
||||
widget_invalidate_force(WIDGET(image), NULL);
|
||||
}
|
||||
return RET_REPEAT;
|
||||
}
|
||||
#endif /*AWTK_WEB*/
|
||||
|
Loading…
Reference in New Issue
Block a user