Now the triangle outline draws more or less correctly. There is some
annoying overshoot on triangle edges though.