feat(sdl): use SDL_Delay for delay callback (#7243)

This commit is contained in:
Takeshi Watanabe 2024-11-07 20:53:27 +09:00 committed by GitHub
parent a875298f7a
commit f94b34fff1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}