手机锁屏再解锁后可能屏幕方向错误
This commit is contained in:
@@ -533,12 +533,14 @@ function love.run()
|
|||||||
end
|
end
|
||||||
|
|
||||||
--Fresh power info.
|
--Fresh power info.
|
||||||
if Timer()-lastFreshPow>2 and setting.powerInfo and loadingFinished then
|
if Timer()-lastFreshPow>2 then
|
||||||
updatePowerInfo()
|
if setting.powerInfo and loadingFinished then
|
||||||
lastFreshPow=Timer()
|
updatePowerInfo()
|
||||||
|
lastFreshPow=Timer()
|
||||||
|
end
|
||||||
if gc.getWidth()~=scr.w then
|
if gc.getWidth()~=scr.w then
|
||||||
love.resize(gc.getWidth(),gc.getHeight())
|
love.resize(gc.getWidth(),gc.getHeight())
|
||||||
LOG.print("Resized",color.yellow)
|
LOG.print("Screen Resized",color.yellow)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user