thisdp/dgs

Creating memo with relative size doesn't work

R3fr3Sh opened this issue · 4 comments

As the title says, I am unable to create memo with relative size, but I fixed my problem with one line of code added at line 55 in file core/memo.lua. I'd create pull request but I don't know how can I do that.
local renderTarget = dxCreateRenderTarget(abx-4,aby,true)

Show me your code.

memo = dgsDxCreateMemo(0.2,0.2,0.4,0.4,"This is a dgs-dxmemo",true)
This works fine.

I even updated dgs to latest version using console.
local DGS = exports.dgs; DGS:dgsDxCreateMemo(0.2,0.2,0.4,0.4,"This is a dgs-dxmemo created using relative size",true)
local DGS = exports.dgs; DGS:dgsDxCreateMemo(900, 500, 200, 100, "This is a dgs-dxmemo created using real size", false)

Result:
screen

Check your video memory. If your video memory is low, you can't create memo.

/cmd
dxstatus