Update line_painter.c