diff options
| author | jussi | 2023-11-24 20:09:34 +0200 |
|---|---|---|
| committer | jussi | 2023-11-24 20:09:34 +0200 |
| commit | a1887aa86694208549bee0ef46758d602ba79696 (patch) | |
| tree | de8b310c3f9bfce849a1e7aa9a8188f8597c1c9b /src/lua_core.c | |
| parent | 925afdf101d6993e35d6c32c52766c7c3f89ae5e (diff) | |
| download | reilua-enhanced-a1887aa86694208549bee0ef46758d602ba79696.tar.gz reilua-enhanced-a1887aa86694208549bee0ef46758d602ba79696.tar.bz2 reilua-enhanced-a1887aa86694208549bee0ef46758d602ba79696.zip | |
SDL Events.
Diffstat (limited to 'src/lua_core.c')
| -rw-r--r-- | src/lua_core.c | 6 |
1 files changed, 4 insertions, 2 deletions
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 ); |
