From 2870166a4c054e5a00a36e1e56253dea59965883 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Wed, 9 Sep 2020 23:22:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E6=9C=BA=E9=94=81=E5=B1=8F=E5=86=8D?= =?UTF-8?q?=E8=A7=A3=E9=94=81=E5=90=8E=E5=8F=AF=E8=83=BD=E5=B1=8F=E5=B9=95?= =?UTF-8?q?=E6=96=B9=E5=90=91=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/init.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Zframework/init.lua b/Zframework/init.lua index 471b43b6..59a8f14b 100644 --- a/Zframework/init.lua +++ b/Zframework/init.lua @@ -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