mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-28 13:36:27 +08:00
fix(nuttx_image_cache): fix incorrect code order (#7644)
This commit is contained in:
@@ -67,8 +67,6 @@ static void free_cb(void * draw_buf);
|
|||||||
void lv_nuttx_image_cache_init(bool use_independent_image_heap)
|
void lv_nuttx_image_cache_init(bool use_independent_image_heap)
|
||||||
{
|
{
|
||||||
lv_draw_buf_handlers_t * handlers = image_cache_draw_buf_handlers;
|
lv_draw_buf_handlers_t * handlers = image_cache_draw_buf_handlers;
|
||||||
handlers->buf_malloc_cb = malloc_cb;
|
|
||||||
handlers->buf_free_cb = free_cb;
|
|
||||||
|
|
||||||
ctx = lv_malloc_zeroed(sizeof(lv_nuttx_ctx_image_cache_t));
|
ctx = lv_malloc_zeroed(sizeof(lv_nuttx_ctx_image_cache_t));
|
||||||
LV_ASSERT_MALLOC(ctx);
|
LV_ASSERT_MALLOC(ctx);
|
||||||
|
|||||||
Reference in New Issue
Block a user