mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-30 02:58:26 +08:00
improve dirty rect
This commit is contained in:
parent
2f27f82a9b
commit
f09c1d6e34
@ -2,6 +2,7 @@
|
||||
|
||||
2022/05/10
|
||||
* 修复API注释错误(感谢朝泽提供补丁)
|
||||
* 修复绘制子控件时错误的使用了父控件dirty\_rect\_tolerance属性的问题 (感谢雨欣提供补丁)。
|
||||
|
||||
2022/05/09
|
||||
* 修改打包工具配合desiger打包lcd旋转资源的修改(感谢智明提供补丁)。
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user