add "static inline" keyword to draw_line()