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:
parent
e2b19eb4ac
commit
28094404ad
@ -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++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user