From 91f69874ab802309cba6db479cb60cdd1dffc469 Mon Sep 17 00:00:00 2001 From: Jackhtk <71304648+Jackhtk@users.noreply.github.com> Date: Mon, 8 Aug 2022 16:46:37 +0800 Subject: [PATCH] fix(hal_disp): incorrect deinit callbacks set (#3549) This patch correct some incorrectly set hal display callbacks. --- src/hal/lv_hal_disp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hal/lv_hal_disp.c b/src/hal/lv_hal_disp.c index 710ed699f..1891c953e 100644 --- a/src/hal/lv_hal_disp.c +++ b/src/hal/lv_hal_disp.c @@ -88,11 +88,11 @@ void lv_disp_drv_init(lv_disp_drv_t * driver) #if LV_USE_GPU_STM32_DMA2D driver->draw_ctx_init = lv_draw_stm32_dma2d_ctx_init; - driver->draw_ctx_deinit = lv_draw_stm32_dma2d_ctx_init; + driver->draw_ctx_deinit = lv_draw_stm32_dma2d_ctx_deinit; driver->draw_ctx_size = sizeof(lv_draw_stm32_dma2d_ctx_t); #elif LV_USE_GPU_SWM341_DMA2D driver->draw_ctx_init = lv_draw_swm341_dma2d_ctx_init; - driver->draw_ctx_deinit = lv_draw_swm341_dma2d_ctx_init; + driver->draw_ctx_deinit = lv_draw_swm341_dma2d_ctx_deinit; driver->draw_ctx_size = sizeof(lv_draw_swm341_dma2d_ctx_t); #elif LV_USE_GPU_NXP_PXP || LV_USE_GPU_NXP_VG_LITE driver->draw_ctx_init = lv_draw_nxp_ctx_init; @@ -104,11 +104,11 @@ void lv_disp_drv_init(lv_disp_drv_t * driver) driver->draw_ctx_size = sizeof(lv_draw_sdl_ctx_t); #elif LV_USE_GPU_ARM2D driver->draw_ctx_init = lv_draw_arm2d_ctx_init; - driver->draw_ctx_deinit = lv_draw_arm2d_ctx_init; + driver->draw_ctx_deinit = lv_draw_arm2d_ctx_deinit; driver->draw_ctx_size = sizeof(lv_draw_arm2d_ctx_t); #else driver->draw_ctx_init = lv_draw_sw_init_ctx; - driver->draw_ctx_deinit = lv_draw_sw_init_ctx; + driver->draw_ctx_deinit = lv_draw_sw_deinit_ctx; driver->draw_ctx_size = sizeof(lv_draw_sw_ctx_t); #endif