修正只有屏幕宽度异常时自动刷新窗口尺寸

This commit is contained in:
MrZ626
2021-07-14 18:51:13 +08:00
parent 2edd5542f8
commit 52ad2e2ddc

View File

@@ -688,7 +688,7 @@ function love.run()
updatePowerInfo()
lastFreshPow=time
end
if gc.getWidth()~=SCR.w then
if gc.getWidth()~=SCR.w or gc.getHeight()~=SCR.h then
love.resize(gc.getWidth(),gc.getHeight())
end
end