Fixed error in DrawPolygon where only the x coordinate was used