From cde97fdd3f1e4f728160355504ed6824bb14e352 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Thu, 10 Jun 2021 16:01:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9SCR=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E5=87=A0=E4=B8=AAmiddle=E5=9D=90=E6=A0=87=E7=B3=BB=E5=AF=B9?= =?UTF-8?q?=E8=B1=A1=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/init.lua | 2 +- Zframework/screen.lua | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Zframework/init.lua b/Zframework/init.lua index f13403d8..52d770bf 100644 --- a/Zframework/init.lua +++ b/Zframework/init.lua @@ -613,7 +613,7 @@ function love.run() _=SCN.stat _.draw(_.time) end - gc_replaceTransform(SCR.xOy_dm) + gc_replaceTransform(SCR.xOy_d) --Draw Version string gc_setColor(.8,.8,.8,.4) setFont(20) diff --git a/Zframework/screen.lua b/Zframework/screen.lua index 583f3e5b..84169ac4 100644 --- a/Zframework/screen.lua +++ b/Zframework/screen.lua @@ -16,12 +16,12 @@ local SCR={ xOy_m=love.math.newTransform(), xOy=love.math.newTransform(), xOy_ul=love.math.newTransform(), - xOy_um=love.math.newTransform(), + xOy_u=love.math.newTransform(), xOy_ur=love.math.newTransform(), - xOy_ml=love.math.newTransform(), - xOy_mr=love.math.newTransform(), + xOy_l=love.math.newTransform(), + xOy_r=love.math.newTransform(), xOy_dl=love.math.newTransform(), - xOy_dm=love.math.newTransform(), + xOy_d=love.math.newTransform(), xOy_dr=love.math.newTransform(), } function SCR.setSize(w,h) @@ -49,12 +49,12 @@ function SCR.resize(w,h) SCR.xOy:setTransformation(SCR.x,SCR.y,0,SCR.k) SCR.xOy_m:setTransformation(w/2,h/2,0,SCR.k) SCR.xOy_ul:setTransformation(0,0,0,SCR.k) - SCR.xOy_um:setTransformation(w/2,0,0,SCR.k) + SCR.xOy_u:setTransformation(w/2,0,0,SCR.k) SCR.xOy_ur:setTransformation(w,0,0,SCR.k) - SCR.xOy_ml:setTransformation(0,h/2,0,SCR.k) - SCR.xOy_mr:setTransformation(w,h/2,0,SCR.k) + SCR.xOy_l:setTransformation(0,h/2,0,SCR.k) + SCR.xOy_r:setTransformation(w,h/2,0,SCR.k) SCR.xOy_dl:setTransformation(0,h,0,SCR.k) - SCR.xOy_dm:setTransformation(w/2,h,0,SCR.k) + SCR.xOy_d:setTransformation(w/2,h,0,SCR.k) SCR.xOy_dr:setTransformation(w,h,0,SCR.k) end function SCR.info()