Patch from Mark Wooding to introduce a draw_thick_line() function in