From f94b34fff12a4c6442f11a394f582296b1a6a140 Mon Sep 17 00:00:00 2001 From: Takeshi Watanabe Date: Thu, 7 Nov 2024 20:53:27 +0900 Subject: [PATCH] feat(sdl): use SDL_Delay for delay callback (#7243) --- src/drivers/sdl/lv_sdl_window.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/drivers/sdl/lv_sdl_window.c b/src/drivers/sdl/lv_sdl_window.c index 19e2f448b..30b84f495 100644 --- a/src/drivers/sdl/lv_sdl_window.c +++ b/src/drivers/sdl/lv_sdl_window.c @@ -87,6 +87,7 @@ lv_display_t * lv_sdl_window_create(int32_t hor_res, int32_t ver_res) SDL_StartTextInput(); event_handler_timer = lv_timer_create(sdl_event_handler, 5, NULL); lv_tick_set_cb(SDL_GetTicks); + lv_delay_set_cb(SDL_Delay); inited = true; }