mirror of
https://github.com/lvgl/lvgl.git
synced 2024-11-23 01:33:59 +08:00
fix(draw): fix incorrect clip area computation when clearing transparent framebuffers (#7269)
This commit is contained in:
parent
63a06e86b0
commit
c94216ab47
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user