corrected indentation

This commit is contained in:
Lael N. Santos
2020-10-05 23:40:44 -03:00
parent 589d5cabb8
commit dc192c88f3

View File

@@ -768,33 +768,33 @@ LC_NUMBER2(LINES, LINES)
static int static int
lc_ungetmouse(lua_State *L) lc_ungetmouse(lua_State *L)
{ {
MEVENT e; MEVENT e;
e.bstate = luaL_checklong(L, 1); e.bstate = luaL_checklong(L, 1);
e.x = luaL_checkint(L, 2); e.x = luaL_checkint(L, 2);
e.y = luaL_checkint(L, 3); e.y = luaL_checkint(L, 3);
e.z = luaL_checkint(L, 4); e.z = luaL_checkint(L, 4);
e.id = luaL_checkint(L, 5); e.id = luaL_checkint(L, 5);
lua_pushboolean(L, !(!ungetmouse(&e))); lua_pushboolean(L, !(!ungetmouse(&e)));
return 1; return 1;
} }
static int static int
lc_getmouse(lua_State *L) lc_getmouse(lua_State *L)
{ {
MEVENT e; MEVENT e;
if (getmouse(&e) == OK) if (getmouse(&e) == OK)
{ {
lua_pushinteger(L, e.bstate); lua_pushinteger(L, e.bstate);
lua_pushinteger(L, e.x); lua_pushinteger(L, e.x);
lua_pushinteger(L, e.y); lua_pushinteger(L, e.y);
lua_pushinteger(L, e.z); lua_pushinteger(L, e.z);
lua_pushinteger(L, e.id); lua_pushinteger(L, e.id);
return 5; return 5;
} }
lua_pushnil(L); lua_pushnil(L);
return 1; return 1;
} }
static int static int