fix(draw): fix incorrect clip area computation when clearing transparent framebuffers (#7269)

This commit is contained in:
Finomnis 2024-11-14 20:39:51 +01:00 committed by GitHub
parent 63a06e86b0
commit c94216ab47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -770,7 +770,9 @@ static void refr_configured_layer(lv_layer_t * layer)
}
/*If the screen is transparent initialize it when the flushing is ready*/
if(lv_color_format_has_alpha(disp_refr->color_format)) {
lv_draw_buf_clear(layer->draw_buf, &layer->_clip_area);
lv_area_t clear_area = layer->_clip_area;
lv_area_move(&clear_area, -layer->buf_area.x1, -layer->buf_area.y1);
lv_draw_buf_clear(layer->draw_buf, &clear_area);
}
lv_obj_t * top_act_scr = NULL;