From 88ac96242f0d36e53876ece9f90baf776616f0bc Mon Sep 17 00:00:00 2001 From: jacqueline Date: Wed, 3 Jul 2024 10:43:54 +1000 Subject: Load fonts asynchronously on a bg task This saves a second or two from bootup; AFAICT this *mostly* reclaims the dynamic fonts boot time regression. --- lib/luavgl/src/luavgl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/luavgl/src/luavgl.h') diff --git a/lib/luavgl/src/luavgl.h b/lib/luavgl/src/luavgl.h index 6c5f8e98..8b7b92aa 100644 --- a/lib/luavgl/src/luavgl.h +++ b/lib/luavgl/src/luavgl.h @@ -12,7 +12,7 @@ extern "C" { #endif -typedef const lv_font_t *(*make_font_cb)(const char *); +typedef void (*make_font_cb)(lua_State *L, const char *, int cb); typedef void (*delete_font_cb)(const lv_font_t *); typedef int (*luavgl_pcall_t)(lua_State *L, int nargs, int nresults); -- cgit v1.2.3