summaryrefslogtreecommitdiff
path: root/src/lua_core.c
diff options
context:
space:
mode:
authorjussi2023-11-24 20:09:34 +0200
committerjussi2023-11-24 20:09:34 +0200
commita1887aa86694208549bee0ef46758d602ba79696 (patch)
treede8b310c3f9bfce849a1e7aa9a8188f8597c1c9b /src/lua_core.c
parent925afdf101d6993e35d6c32c52766c7c3f89ae5e (diff)
downloadreilua-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.c6
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 );