mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-21 22:52:46 +08:00
perf(refr): reduce refr_children call by check layer->opa (#8133)
Signed-off-by: yushuailong1 <yushuailong1@xiaomi.com>
This commit is contained in:
+1
-1
@@ -140,7 +140,7 @@ void lv_obj_redraw(lv_layer_t * layer, lv_obj_t * obj)
|
||||
}
|
||||
lv_area_t clip_coords_for_children;
|
||||
bool refr_children = true;
|
||||
if(!lv_area_intersect(&clip_coords_for_children, &clip_area_ori, obj_coords)) {
|
||||
if(!lv_area_intersect(&clip_coords_for_children, &clip_area_ori, obj_coords) || layer->opa <= LV_OPA_MIN) {
|
||||
refr_children = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user