mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
fix(hal_disp): incorrect deinit callbacks set (#3549)
This patch correct some incorrectly set hal display callbacks.
This commit is contained in:
parent
3a8b1c8748
commit
91f69874ab
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user