improve dirty rect

This commit is contained in:
lixianjing 2022-05-10 17:19:49 +08:00
parent 2f27f82a9b
commit f09c1d6e34
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
2022/05/10
* 修复API注释错误(感谢朝泽提供补丁)
* 修复绘制子控件时错误的使用了父控件dirty\_rect\_tolerance属性的问题 (感谢雨欣提供补丁)。
2022/05/09
* 修改打包工具配合desiger打包lcd旋转资源的修改感谢智明提供补丁

View File

@ -108,7 +108,7 @@ ret_t widget_on_paint_children_default(widget_t* widget, canvas_t* c) {
}
if (!(iter->vt->allow_draw_outside)) {
int32_t tolerance = widget->dirty_rect_tolerance;
int32_t tolerance = iter->dirty_rect_tolerance;
int32_t left = c->ox + iter->x - tolerance;
int32_t top = c->oy + iter->y - tolerance;
int32_t bottom = top + iter->h + 2 * tolerance;