1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

fix(refr): fix single buffered direct mode

fixes 9787d47d0
This commit is contained in:
Gabor Kiss-Vamosi 2023-09-08 22:39:12 +02:00
parent e2b19eb4ac
commit 28094404ad

View File

@ -327,12 +327,8 @@ void _lv_disp_refr_timer(lv_timer_t * tmr)
/*If refresh happened ...*/ /*If refresh happened ...*/
if(disp_refr->inv_p != 0) { if(disp_refr->inv_p != 0) {
/*Copy invalid areas for sync next refresh*/ /*Copy invalid areas for sync next refresh in double buffered direct mode*/
if(disp_refr->driver->direct_mode) { if(disp_refr->driver->direct_mode && disp_refr->driver->draw_buf->buf2) {
/*Do not copy areas if not double buffered*/
if(disp_refr->driver->draw_buf->buf2 == NULL)
return;
uint16_t i; uint16_t i;
for(i = 0; i < disp_refr->inv_p; i++) { for(i = 0; i < disp_refr->inv_p; i++) {