Fix write of of buffer with true double buffering and set_px_cb
This commit is contained in:
@@ -172,9 +172,9 @@ void lv_disp_refr_task(lv_task_t * task)
|
|||||||
|
|
||||||
/*If refresh happened ...*/
|
/*If refresh happened ...*/
|
||||||
if(disp_refr->inv_p != 0) {
|
if(disp_refr->inv_p != 0) {
|
||||||
/*In true double buffered mode copy the refreshed areas to the new VDB to keep it up to
|
/* In true double buffered mode copy the refreshed areas to the new VDB to keep it up to date.
|
||||||
* date*/
|
* With set_px_cb we don't know anything about the buffer (even it's size) so skip copying.*/
|
||||||
if(lv_disp_is_true_double_buf(disp_refr)) {
|
if(lv_disp_is_true_double_buf(disp_refr) && disp_refr->driver.set_px_cb == NULL) {
|
||||||
lv_disp_buf_t * vdb = lv_disp_get_buf(disp_refr);
|
lv_disp_buf_t * vdb = lv_disp_get_buf(disp_refr);
|
||||||
|
|
||||||
/*Flush the content of the VDB*/
|
/*Flush the content of the VDB*/
|
||||||
|
|||||||
Reference in New Issue
Block a user