gd lua fix

master
wipedlife 2021-07-03 04:42:40 +03:00
parent f85f063046
commit 8ae2c9472c
2 changed files with 8 additions and 6 deletions

View File

@ -8,7 +8,9 @@ function gd:new(width, height,quality,color)
obj.quality = quality or 50 obj.quality = quality or 50
obj.gd = nil obj.gd = nil
obj.defFont = {} obj.defFont = {}
obj.background = color or obj:getColorFromArray(color) obj.background = color or images.gdRandColor()
-- --
function obj:getSize() function obj:getSize()
return obj.width,obj.height return obj.width,obj.height

View File

@ -328,10 +328,10 @@ local function checkEd25519rsa ()
ed25519rsa.freeaKey(rsa) ed25519rsa.freeaKey(rsa)
ed25519rsa.freeaKey(rsa_) ed25519rsa.freeaKey(rsa_)
end end
--checkEd25519rsa () checkEd25519rsa ()
--GMPTEST() GMPTEST()
--CryptocoinsTest() CryptocoinsTest()
--checkGD(120,120,100,color) EncDecTest()
--EncDecTest() checkGD(120,120,100,color)