summaryrefslogtreecommitdiff
path: root/iup/srclua3
diff options
context:
space:
mode:
authorNicolas Noble <pixel@nobis-crew.org>2010-09-09 10:47:04 -0700
committerNicolas Noble <pixel@nobis-crew.org>2010-09-09 10:47:04 -0700
commitbe46128d75ff8f2739b856dcc4ec41bebb90a666 (patch)
tree6f8ac0c4aead39bbbc38beaec5a1c403059f9047 /iup/srclua3
parent53d6ee570041c7e47c02dd8b4ca753a3b020369f (diff)
Adding the SetRedraw() directive - only for Windows.
Diffstat (limited to 'iup/srclua3')
-rwxr-xr-xiup/srclua3/iuplua_api.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/iup/srclua3/iuplua_api.c b/iup/srclua3/iuplua_api.c
index a9acf1d..f9c6b30 100755
--- a/iup/srclua3/iuplua_api.c
+++ b/iup/srclua3/iuplua_api.c
@@ -269,6 +269,11 @@ static void Redraw(void)
IupRedraw(iuplua_checkihandle(1), luaL_check_int(2));
}
+static void SetRedraw(void)
+{
+ IupSetRedraw(iuplua_checkihandle(1), luaL_check_int(2));
+}
+
static void VersionNumber(void)
{
lua_pushnumber(IupVersionNumber());
@@ -682,6 +687,7 @@ int iupluaapi_open(void)
{ "IupUpdate", Update },
{ "IupUpdateChildren", UpdateChildren },
{ "IupRedraw", Redraw },
+ { "IupSetRedraw", SetRedraw },
{ "IupVersionNumber", VersionNumber },
{ "IupShowXY", ShowXY },
{ "IupHide", Hide },