mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-28 05:26:18 +08:00
fix(obj): cover check should consider both grad opa-s (#7813)
This commit is contained in:
committed by
GitHub
parent
560364adaa
commit
8d84f6a699
+2
-1
@@ -586,7 +586,8 @@ static void lv_obj_draw(lv_event_t * e)
|
||||
}
|
||||
|
||||
if(lv_obj_get_style_bg_grad_dir(obj, 0) != LV_GRAD_DIR_NONE) {
|
||||
if(lv_obj_get_style_bg_grad_opa(obj, 0) < LV_OPA_MAX) {
|
||||
if(lv_obj_get_style_bg_grad_opa(obj, 0) < LV_OPA_MAX ||
|
||||
lv_obj_get_style_bg_main_opa(obj, 0) < LV_OPA_MAX) {
|
||||
info->res = LV_COVER_RES_NOT_COVER;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user