improve gif fix issue #437

This commit is contained in:
xianjimli 2020-07-02 18:26:01 +08:00
parent c5a3bb091a
commit d84a307552
2 changed files with 7 additions and 2 deletions

View File

@ -4,6 +4,7 @@
* 完善 graphic\_buffer\_default
* 增加 tk\_mem\_is\_valid\_addr
* 完善 edit 注释(感谢俊杰提供补丁)。
* gif 隐藏后不再刷新。
* 完善 ui loader感谢 dog2nd_Zhao 提供补丁)。
* 2020/06/30

View File

@ -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;
widget_invalidate_force(WIDGET(image), NULL);
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++;
widget_invalidate_force(WIDGET(image), NULL);
if (WIDGET(image)->visible) {
widget_invalidate_force(WIDGET(image), NULL);
}
return RET_REPEAT;
}
#endif /*AWTK_WEB*/