function roundedRectangle(x, y, w, h, color)
dxDrawRectangle(x, y, w, h, color, true)
dxDrawRectangle(x + 2, y - 1, w - 4, 1, color, true)
dxDrawRectangle(x + 2, y + h, w - 4, 1, color, true)
dxDrawRectangle(x - 1, y + 2, 1, h - 4, color, true)
dxDrawRectangle(x + w, y + 2, 1, h - 4, color, true)
end