mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
feat(sdl): use SDL_Delay for delay callback (#7243)
This commit is contained in:
parent
a875298f7a
commit
f94b34fff1
@ -87,6 +87,7 @@ lv_display_t * lv_sdl_window_create(int32_t hor_res, int32_t ver_res)
|
|||||||
SDL_StartTextInput();
|
SDL_StartTextInput();
|
||||||
event_handler_timer = lv_timer_create(sdl_event_handler, 5, NULL);
|
event_handler_timer = lv_timer_create(sdl_event_handler, 5, NULL);
|
||||||
lv_tick_set_cb(SDL_GetTicks);
|
lv_tick_set_cb(SDL_GetTicks);
|
||||||
|
lv_delay_set_cb(SDL_Delay);
|
||||||
|
|
||||||
inited = true;
|
inited = true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user