From 649a1b3032850b881f08434fbf07e4d3bb842b10 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Mon, 7 Dec 2020 13:40:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/init.lua | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Zframework/init.lua b/Zframework/init.lua index 48d9f138..f0396f92 100644 --- a/Zframework/init.lua +++ b/Zframework/init.lua @@ -430,19 +430,19 @@ love.draw,love.update=nil--remove default draw/update function love.run() local SCN=SCN local SETTING=SETTING - local DISCARD=gc.discard - local PRESENT=gc.present local Timer=love.timer.getTime local STEP,WAIT=love.timer.step,love.timer.sleep - local mini=love.window.isMinimized + local MINI=love.window.isMinimized local PUMP,POLL=love.event.pump,love.event.poll + local DISCARD=gc.discard + local PRESENT=gc.present local frameTimeList={} local lastFrame=Timer() local lastFreshPow=lastFrame - local FCT=0--Framedraw counter + local FCT=0--Framedraw counter, from 0~99 love.resize(gc.getWidth(),gc.getHeight()) @@ -484,7 +484,7 @@ function love.run() LOG.update() --DRAW - if not mini()then + if not MINI()then FCT=FCT+SETTING.frameMul if FCT>=100 then FCT=FCT-100 @@ -572,7 +572,6 @@ function love.run() end if gc.getWidth()~=SCR.w then love.resize(gc.getWidth(),gc.getHeight()) - LOG.print("Screen Resized",COLOR.yellow) end end