1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

add lv_draw_free_buf

This commit is contained in:
Gabor Kiss-Vamosi 2019-06-26 15:56:41 +02:00
parent 071bf4cc4c
commit f806f8c526
3 changed files with 13 additions and 0 deletions

View File

@ -217,6 +217,8 @@ void lv_disp_refr_task(lv_task_t * task)
}
}
lv_draw_free_buf();
LV_LOG_TRACE("lv_refr_task: ready");
}

View File

@ -58,6 +58,15 @@ void * lv_draw_get_buf(uint32_t size)
return draw_buf;
}
void lv_draw_free_buf(void)
{
if(draw_buf) {
lv_mem_free(draw_buf);
draw_buf = NULL;
draw_buf_size = 0;
}
}
#if LV_ANTIALIAS

View File

@ -37,6 +37,8 @@ extern "C" {
void * lv_draw_get_buf(uint32_t size);
void lv_draw_free_buf(void);
#if LV_ANTIALIAS
/**