From 63a1f75692a6b103a2e1cd1cf05fa4ad14e91457 Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Tue, 9 Oct 2018 17:49:43 -0500 Subject: [PATCH] Making mesh lines some minimal width. --- src/plot.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plot.cpp b/src/plot.cpp index 3e80bc901..427891781 100644 --- a/src/plot.cpp +++ b/src/plot.cpp @@ -296,7 +296,7 @@ void draw_mesh_lines(ObjectPlot *pl, // draw lines for (int out_ = outrange[0]; out_ < outrange[1]; out_++) { - for (int plus = 0; plus < pl->meshlines_width; plus++) { + for (int plus = 0; plus <= pl->meshlines_width; plus++) { data[out_ + 1][inrange[0] + plus + 1] = rgb; data[out_ + 1][inrange[1] + plus + 1] = rgb; data[out_ + 1][inrange[0] - plus + 1] = rgb; @@ -305,7 +305,7 @@ void draw_mesh_lines(ObjectPlot *pl, } for (int in_ = inrange[0]; in_ < inrange[1]; in_++) { - for (int plus = 0; plus < pl->meshlines_width; plus++) { + for (int plus = 0; plus <= pl->meshlines_width; plus++) { data[outrange[0] + plus + 1][in_ + 1] = rgb; data[outrange[1] + plus + 1][in_ + 1] = rgb; data[outrange[0] - plus + 1][in_ + 1] = rgb;