fix(refr): lv_refr_get_top_obj not check style opa (#7643)

Signed-off-by: yushuailong1 <yushuailong1@xiaomi.com>
Co-authored-by: yushuailong1 <yushuailong1@xiaomi.com>
This commit is contained in:
yushuailong
2025-01-24 01:31:30 +08:00
committed by GitHub
parent 52c48cbe3f
commit d066084e29

View File

@@ -830,6 +830,7 @@ static lv_obj_t * lv_refr_get_top_obj(const lv_area_t * area_p, lv_obj_t * obj)
if(lv_area_is_in(area_p, &obj->coords, 0) == false) return NULL; if(lv_area_is_in(area_p, &obj->coords, 0) == false) return NULL;
if(lv_obj_has_flag(obj, LV_OBJ_FLAG_HIDDEN)) return NULL; if(lv_obj_has_flag(obj, LV_OBJ_FLAG_HIDDEN)) return NULL;
if(lv_obj_get_layer_type(obj) != LV_LAYER_TYPE_NONE) return NULL; if(lv_obj_get_layer_type(obj) != LV_LAYER_TYPE_NONE) return NULL;
if(lv_obj_get_style_opa(obj, LV_PART_MAIN) < LV_OPA_MAX) return NULL;
/*If this object is fully cover the draw area then check the children too*/ /*If this object is fully cover the draw area then check the children too*/
lv_cover_check_info_t info; lv_cover_check_info_t info;