mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
fix: do not copy invalid areas if not double buffered mode (#4526)
This commit is contained in:
parent
6548ea0f29
commit
9787d47d0b
@ -329,6 +329,11 @@ void _lv_disp_refr_timer(lv_timer_t * tmr)
|
||||
|
||||
/*Copy invalid areas for sync next refresh*/
|
||||
if(disp_refr->driver->direct_mode) {
|
||||
|
||||
/*Do not copy areas if not double buffered*/
|
||||
if(disp_refr->driver->draw_buf->buf2 == NULL)
|
||||
return;
|
||||
|
||||
uint16_t i;
|
||||
for(i = 0; i < disp_refr->inv_p; i++) {
|
||||
if(disp_refr->inv_area_joined[i])
|
||||
|
Loading…
x
Reference in New Issue
Block a user