gr: use correct line width

This commit is contained in:
Josef Heinen 2017-04-10 14:56:38 +02:00
parent c3ae9e1ee2
commit ccb9df2a08

View File

@ -335,9 +335,10 @@ end
# ---------------------------------------------------------
function gr_set_line(w, style, c) #, a)
function gr_set_line(lw, style, c) #, a)
GR.setlinetype(gr_linetype[style])
GR.setlinewidth(w)
w, h = gr_plot_size
GR.setlinewidth(max(1, lw / ((w + h) * 0.001)))
gr_set_linecolor(c) #, a)
end