From 6f55d1377f4c4442f66c67471001e666a97f9195 Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Mon, 26 Sep 2016 18:53:32 +0200 Subject: api: restore old return type of deprecated ui_try_resize method --- scripts/gendispatch.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts') diff --git a/scripts/gendispatch.lua b/scripts/gendispatch.lua index 40507d0afe..65e4559491 100644 --- a/scripts/gendispatch.lua +++ b/scripts/gendispatch.lua @@ -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 -- cgit