From 7505e88db66798b2b8fcdff2d92a7136cd826b5b Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Thu, 9 Sep 2010 02:26:30 +0200 Subject: Upgrading to IUP 3.2 - and cleaning up. --- iup/srclua5/il_glcanvas.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'iup/srclua5/il_glcanvas.c') diff --git a/iup/srclua5/il_glcanvas.c b/iup/srclua5/il_glcanvas.c index 27f7277..933f06f 100755 --- a/iup/srclua5/il_glcanvas.c +++ b/iup/srclua5/il_glcanvas.c @@ -16,8 +16,8 @@ static int glcanvas_action(Ihandle *self, int p0, int p1) { lua_State *L = iuplua_call_start(self, "action"); - lua_pushnumber(L, p0); - lua_pushnumber(L, p1); + lua_pushinteger(L, p0); + lua_pushinteger(L, p1); return iuplua_call(L, 2); } @@ -60,9 +60,3 @@ int luaopen_iupluagl(lua_State* L) return iupgllua_open(L); } -/* obligatory to use require"iupluagl51" */ -int luaopen_iupluagl51(lua_State* L) -{ - return iupgllua_open(L); -} - -- cgit v1.2.3