mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
Fix initialization of disp->last_activity_time
(#1388)
if we use custom memory allocation, 'last_activity_time' must be initialized with zero value Co-authored-by: ftrtyfytfjh <email@email.com>
This commit is contained in:
parent
def245f939
commit
320ee83dac
@ -127,6 +127,7 @@ lv_disp_t * lv_disp_drv_register(lv_disp_drv_t * driver)
|
||||
memset(&disp->inv_area_joined, 0, sizeof(disp->inv_area_joined));
|
||||
memset(&disp->inv_areas, 0, sizeof(disp->inv_areas));
|
||||
lv_ll_init(&disp->scr_ll, sizeof(lv_obj_t));
|
||||
disp->last_activity_time = 0;
|
||||
|
||||
if(disp_def == NULL) disp_def = disp;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user