删除用于更新窗口的tickEvent,放在主循环内间隔检测

This commit is contained in:
MrZ_26
2020-08-05 01:00:46 +08:00
parent 0c13f412c4
commit 139330b4c4

View File

@@ -74,14 +74,4 @@ function Tick.autoPause(data)
return true
end
end
function Tick.autoResize(data)
data[1]=data[1]+1
if data[1]==62 then
local w,h=gc.getWidth(),gc.getHeight()
if w<h then
love.resize(w,h)
end
return true
end
end
return Tick