fix line joints when doing a PI angle

fixes #1037
Merge pull request #2421 from kivy/fix_line_joints

Fix line joints when doing a PI angle