1
0
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:
Lukasz Skalski 2023-09-07 13:51:33 +02:00 committed by GitHub
parent 6548ea0f29
commit 9787d47d0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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])