From 9401353ccb1c3371d5724960705f360e4203005d Mon Sep 17 00:00:00 2001 From: Jan Van Winkel Date: Fri, 19 Jul 2019 17:48:45 +0200 Subject: [PATCH] Pass disp->driver to rounder_cb in lv_inv_area Pass pointer to disp->driver to rounder_cb in lv_inv_area instead of pointer to disp_refr->driver as lv_inv_area is called when no refresh is ongoing (lv_disp_drv_register). Signed-off-by: Jan Van Winkel --- src/lv_core/lv_refr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lv_core/lv_refr.c b/src/lv_core/lv_refr.c index e91b569b9..7399835f5 100644 --- a/src/lv_core/lv_refr.c +++ b/src/lv_core/lv_refr.c @@ -115,7 +115,7 @@ void lv_inv_area(lv_disp_t * disp, const lv_area_t * area_p) /*The area is truncated to the screen*/ if(suc != false) { - if(disp->driver.rounder_cb) disp->driver.rounder_cb(&disp_refr->driver, &com_area); + if(disp->driver.rounder_cb) disp->driver.rounder_cb(&disp->driver, &com_area); /*Save only if this area is not in one of the saved areas*/ uint16_t i;