手机锁屏再解锁后可能屏幕方向错误

This commit is contained in:
MrZ626
2020-09-09 23:22:44 +08:00
parent b56852e16a
commit 2870166a4c

View File

@@ -533,12 +533,14 @@ function love.run()
end
--Fresh power info.
if Timer()-lastFreshPow>2 and setting.powerInfo and loadingFinished then
updatePowerInfo()
lastFreshPow=Timer()
if Timer()-lastFreshPow>2 then
if setting.powerInfo and loadingFinished then
updatePowerInfo()
lastFreshPow=Timer()
end
if gc.getWidth()~=scr.w then
love.resize(gc.getWidth(),gc.getHeight())
LOG.print("Resized",color.yellow)
LOG.print("Screen Resized",color.yellow)
end
end