From a1887aa86694208549bee0ef46758d602ba79696 Mon Sep 17 00:00:00 2001 From: jussi Date: Fri, 24 Nov 2023 20:09:34 +0200 Subject: SDL Events. --- src/lua_core.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/lua_core.c') diff --git a/src/lua_core.c b/src/lua_core.c index f0a81e1..e29a943 100644 --- a/src/lua_core.c +++ b/src/lua_core.c @@ -983,7 +983,7 @@ bool luaInit( int argn, const char **argc ) { defineModelAnimation(); /* Define globals. */ defineGlobals(); - definePlatformGlobals(); + platformDefineGlobals(); /* Register functions. */ luaRegister(); @@ -1078,6 +1078,9 @@ bool luaCallMain() { } void luaCallProcess() { +#ifdef PLATFORM_DESKTOP_SDL + platformSendEvents(); +#endif lua_State *L = state->luaState; lua_pushcfunction( L, luaTraceback ); @@ -1115,7 +1118,6 @@ void luaCallDraw() { state->run = false; return; } - EndDrawing(); } lua_pop( L, -1 ); -- cgit v1.2.3