getpoly function

Draw a polygon on the current graphics device