clean up hyperbolic_paintlines a little bit