Hi hedgehog,
I understand the confusion.
The FillRoundRect function uses integer coordinates. In order to have enough precision on the rounded corners, the parameter is the diameter (DX,DY) instead of the radius (RX,RY).
To get the same result, you need to supply DX=32 to have the same rounded corners as with RX=16.
Regards