You should use the gtri command instead of gline and gfill.