From 37a3e36bd5107482fd36edfb83a99dc14e29ee47 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Thu, 17 Jun 2021 12:46:58 +0800 Subject: [PATCH] =?UTF-8?q?DOGC=E6=A8=A1=E5=9D=97=E4=B8=8D=E4=BC=9A?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E8=B6=85=E8=BF=87=E7=B3=BB=E7=BB=9F=E9=99=90?= =?UTF-8?q?=E5=88=B6=E5=A4=A7=E5=B0=8F=E7=9A=84=E7=94=BB=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/doGC.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Zframework/doGC.lua b/Zframework/doGC.lua index 228d519e..9917333c 100644 --- a/Zframework/doGC.lua +++ b/Zframework/doGC.lua @@ -37,9 +37,10 @@ local cmds={ fArc=function(...)gc.arc('fill','open',...)end, fBow=function(...)gc.arc('fill','closed',...)end, } +local sizeLimit=gc.getSystemLimits().texturesize return function(L) gc.push() - local canvas=gc.newCanvas(L[1],L[2]) + local canvas=gc.newCanvas(math.min(L[1],sizeLimit),math.min(L[2],sizeLimit)) gc.setCanvas(canvas) gc.origin() gc.setColor(1,1,1)