diff options
author | Nicolas Noble <pixel@nobis-crew.org> | 2010-09-09 10:47:04 -0700 |
---|---|---|
committer | Nicolas Noble <pixel@nobis-crew.org> | 2010-09-09 10:47:04 -0700 |
commit | be46128d75ff8f2739b856dcc4ec41bebb90a666 (patch) | |
tree | 6f8ac0c4aead39bbbc38beaec5a1c403059f9047 /iup/srclua5 | |
parent | 53d6ee570041c7e47c02dd8b4ca753a3b020369f (diff) |
Adding the SetRedraw() directive - only for Windows.
Diffstat (limited to 'iup/srclua5')
-rwxr-xr-x | iup/srclua5/iuplua_api.c | 7 |
1 files changed, 7 insertions, 0 deletions
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}, |