From be46128d75ff8f2739b856dcc4ec41bebb90a666 Mon Sep 17 00:00:00 2001 From: Nicolas Noble Date: Thu, 9 Sep 2010 10:47:04 -0700 Subject: Adding the SetRedraw() directive - only for Windows. --- iup/srclua5/iuplua_api.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'iup/srclua5') diff --git a/iup/srclua5/iuplua_api.c b/iup/srclua5/iuplua_api.c index 27adffe..3fc73a1 100755 --- a/iup/srclua5/iuplua_api.c +++ b/iup/srclua5/iuplua_api.c @@ -725,6 +725,12 @@ static int Redraw(lua_State *L) return 0; } +static int SetRedraw(lua_State *L) +{ + IupSetRedraw(iuplua_checkihandle(L,1), luaL_checkinteger(L, 2)); + return 0; +} + static int ShowXY(lua_State *L) { Ihandle *ih = iuplua_checkihandle(L,1); @@ -864,6 +870,7 @@ void iupluaapi_open(lua_State * L) {"UpdateChildren", UpdateChildren}, {"SaveImageAsText", SaveImageAsText}, {"Redraw", Redraw}, + {"SetRedraw", SetRedraw}, {"ShowXY", ShowXY}, {"StoreAttribute", StoreAttribute}, {"StoreGlobal", StoreGlobal}, -- cgit v1.2.3