修复DOGC画布尺寸受限时报错
This commit is contained in:
@@ -43,7 +43,7 @@ return function(L)
|
||||
::REPEAT_tryAgain::
|
||||
local success,canvas=pcall(gc.newCanvas,math.min(L[1],sizeLimit),math.min(L[2],sizeLimit))
|
||||
if not success then
|
||||
texturesize=math.floor(texturesize*.8)
|
||||
sizeLimit=math.floor(sizeLimit*.8)
|
||||
goto REPEAT_tryAgain
|
||||
end
|
||||
gc.setCanvas(canvas)
|
||||
|
||||
Reference in New Issue
Block a user