From 916e168eb9c81dad3d5612d4625ca30033063d80 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Mon, 21 Sep 2020 21:19:56 +0800 Subject: [PATCH] =?UTF-8?q?debug=E6=A8=A1=E5=BC=8F=E5=85=89=E6=A0=87?= =?UTF-8?q?=E5=9D=90=E6=A0=87=E6=98=BE=E7=A4=BA=E5=BF=85=E5=AE=9A=E6=95=B4?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Zframework/init.lua b/Zframework/init.lua index a7020cd7..de5d56e5 100644 --- a/Zframework/init.lua +++ b/Zframework/init.lua @@ -20,7 +20,6 @@ LOG= require("Zframework/log") local ms=love.mouse local gc=love.graphics -local Timer=love.timer.getTime local int,rnd,abs=math.floor,math.random,math.abs local max,min=math.max,math.min local ins,rem=table.insert,table.remove @@ -411,6 +410,7 @@ local FPS=love.timer.getFPS love.draw,love.update=nil--remove default draw/update function love.run() local T=love.timer + local Timer=T.getTime local STEP,GETDelta,WAIT=T.step,T.getDelta,T.sleep local mini=love.window.isMinimized local PUMP,POLL=love.event.pump,love.event.poll @@ -508,7 +508,7 @@ function love.run() gc.setColor(devColor[devMode]) gc.print("Memory:"..gcinfo(),5,_-20) gc.print("Lines:"..freeRow.getCount(),5,_-40) - gc.print("Cursor:"..mx.." "..my,5,_-60) + gc.print("Cursor:"..int(mx+.5).." "..int(my+.5),5,_-60) gc.print("Voices:"..VOC.getCount(),5,_-80) gc.print("Tasks:"..TASK.getCount(),5,_-100) ins(frameTimeList,1,dt)rem(frameTimeList,126)