函数修改成直接执行,也没反应,是不是函数没调用?
function ondisplaychanged()
local cur_res_x = Screen:GetX()
if last_res_x == cur_res_x then return end
last_res_x = cur_res_x
if last_res_x >= 3840 then
Screen:DPI(150)
elseif last_res_x >= 1440 then
Screen:DPI(125)
elseif last_res_x >= 800 then
Screen:DPI(100)
end
Screen:DPI(150)
end