api: restore old return type of deprecated ui_try_resize method

This commit is contained in:
Björn Linse 2016-09-26 18:53:32 +02:00
parent ddb9f02712
commit 6f55d1377f

View File

@ -133,6 +133,11 @@ for i,f in ipairs(shallowcopy(functions)) do
end
local newf = shallowcopy(f)
newf.name = newname
if newname == "ui_try_resize" then
-- The return type was incorrectly set to Object in 0.1.5.
-- Keep it that way for clients that rely on this.
newf.return_type = "Object"
end
newf.impl_name = f.name
newf.noeval = true
newf.deprecated_since = 1