fix(draw_img):radius Mask doesn't work in Specific condition (#2775)

This commit is contained in:
guoweilkd
2021-11-08 16:02:42 +08:00
committed by GitHub
parent 572880ccd3
commit cbf02f8175

View File

@@ -358,8 +358,7 @@ LV_ATTRIBUTE_FAST_MEM static void lv_draw_map(const lv_area_t * map_area, const
draw_area.x2 -= disp_area->x1;
draw_area.y2 -= disp_area->y1;
bool mask_any = lv_draw_mask_is_any(map_area);
bool mask_any = lv_draw_mask_is_any(&draw_area);
/*The simplest case just copy the pixels into the draw_buf*/
if(!mask_any && draw_dsc->angle == 0 && draw_dsc->zoom == LV_IMG_ZOOM_NONE &&
chroma_key == false && alpha_byte == false && draw_dsc->recolor_opa == LV_OPA_TRANSP) {