mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
use opa_scale in cover check
This commit is contained in:
parent
2e2f5bc165
commit
df598675fb
@ -375,7 +375,8 @@ static lv_obj_t * lv_refr_get_top_obj(const lv_area_t * area_p, lv_obj_t * obj)
|
|||||||
if(found_p == NULL) {
|
if(found_p == NULL) {
|
||||||
lv_style_t * style = lv_obj_get_style(obj);
|
lv_style_t * style = lv_obj_get_style(obj);
|
||||||
if(style->body.opa == LV_OPA_COVER &&
|
if(style->body.opa == LV_OPA_COVER &&
|
||||||
obj->design_func(obj, area_p, LV_DESIGN_COVER_CHK) != false) {
|
obj->design_func(obj, area_p, LV_DESIGN_COVER_CHK) != false &&
|
||||||
|
lv_obj_get_opa_scale(obj) == LV_OPA_COVER) {
|
||||||
found_p = obj;
|
found_p = obj;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user