Derma fix ?

How can I fix this gap ?
I used surface.DrawOutlinedRect

Post your code


	local window = vgui.Create( "DFrame" )
	if ScrW() > 640 then
		window:SetSize( ScrW()*0.9, ScrH()*0.9 )
	else
		window:SetSize( 640, 480 )
	end
	window:Center()
	window:SetTitle( "" )
	window:SetVisible( true )
	window:MakePopup()
	window:ShowCloseButton(false)
	window.Paint = function(s , w , h , x , y)
		draw.RoundedBox(2, 0, 2, w, h, Color(52, 73, 94))
		drawRectOutline( x, y, w, h, Color(0,0,0,255) )

	end

Try

[lua] local window = vgui.Create( “DFrame” )
if ScrW() > 640 then
window:SetSize( ScrW()*0.9, ScrH()*0.9 )
else
window:SetSize( 640, 480 )
end
window:Center()
window:SetTitle( “” )
window:SetVisible( true )
window:MakePopup()
window:ShowCloseButton(false)
window.Paint = function(s , w , h , x , y)
draw.RoundedBox(2, 0, 2, w, h, Color(52, 73, 94))
drawRectOutline( x, y + 2, w, h, Color(0,0,0,255) )

end

[/lua]

The issue is your setting the y position of the first rounded box to 2

My inattention, thanks