Skip to content

Commit cb2f011

Browse files
committed
修复DOGC画布尺寸受限时报错
1 parent 70871ee commit cb2f011

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zframework/doGC.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ return function(L)
4343
::REPEAT_tryAgain::
4444
local success,canvas=pcall(gc.newCanvas,math.min(L[1],sizeLimit),math.min(L[2],sizeLimit))
4545
if not success then
46-
texturesize=math.floor(texturesize*.8)
46+
sizeLimit=math.floor(sizeLimit*.8)
4747
goto REPEAT_tryAgain
4848
end
4949
gc.setCanvas(canvas)

0 commit comments

Comments
 (0)