Why the corners look like this?
all corners is same
Draw Function:
function dxDrawRoundedRectangle(x,y,w,h,color,postgui)
local ancho = 0.03*sY/3
dxDrawImageSection(x,y,ancho,ancho,0,0,32,32, corner,0,0,0,color,postgui)--left top
dxDrawRectangle(x+ancho,y,w-(ancho)*2,ancho,color,postgui)
dxDrawImageSection(x+(w-ancho),y,ancho,ancho,32,0,-32,-32, corner,0,0,0,color,postgui)--right top
dxDrawRectangle(x,y+ancho,w,h-ancho*2,color,postgui)
dxDrawImageSection(x,y+(h-ancho),ancho,ancho,0,32,-32,-32, corner,0,0,0,color,postgui)--left bottom
dxDrawRectangle(x+ancho,y+(h-ancho),w-(ancho)*2,ancho,color,postgui)
dxDrawImageSection(x+(w-ancho),y+(h-ancho),ancho,ancho,32,32,-32,-32, corner,0,0,0,color,postgui)--right bottom
end
IMG CORNER:
https://cdn.discordapp.com/attachments/470683175090257930/701206421039218739/rec.png
-------------------------------------------------------