Polygon fill function optimized a little.