diff options
Diffstat (limited to 'iup/srclua5/image.lua')
-rwxr-xr-x | iup/srclua5/image.lua | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/iup/srclua5/image.lua b/iup/srclua5/image.lua index 38ef556..3a82063 100755 --- a/iup/srclua5/image.lua +++ b/iup/srclua5/image.lua @@ -3,7 +3,7 @@ ------------------------------------------------------------------------------ local ctrl = { nick = "image", - parent = WIDGET, + parent = iup.WIDGET, creation = "nns", -- fake definition callback = {}, createfunc = [[ @@ -84,13 +84,13 @@ static int Image (lua_State * L) ]] } -function ctrl.createElement(class, arg) - if (arg.width and arg.height and arg.pixels) then - return Image(arg.width, arg.height, arg.pixels, arg.colors) +function ctrl.createElement(class, param) + if (param.width and param.height and param.pixels) then + return iup.Image(param.width, param.height, param.pixels, param.colors) else - return Image(arg, arg.colors) + return iup.Image(param, param.colors) end end -iupRegisterWidget(ctrl) -iupSetClass(ctrl, "iup widget") +iup.RegisterWidget(ctrl) +iup.SetClass(ctrl, "iup widget") |