diff options
Diffstat (limited to 'source/blender/editors/interface/view2d_draw.c')
-rw-r--r-- | source/blender/editors/interface/view2d_draw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/interface/view2d_draw.c b/source/blender/editors/interface/view2d_draw.c index 95fec2a10e9..36213f919a3 100644 --- a/source/blender/editors/interface/view2d_draw.c +++ b/source/blender/editors/interface/view2d_draw.c @@ -203,9 +203,9 @@ static void draw_parallel_lines(const ParallelLinesSet *lines, immBindBuiltinProgram(GPU_SHADER_3D_POLYLINE_UNIFORM_COLOR); immUniform2fv("viewportSize", &viewport[2]); - /* 0.5f factor here is because the line is too fat due to the builtin antialiasing. + /* -1.0f offset here is because the line is too fat due to the builtin antialiasing. * TODO make a variant or a uniform to toggle it off. */ - immUniform1f("lineWidth", 0.5f * U.pixelsize); + immUniform1f("lineWidth", U.pixelsize - 1.0f); } else { immBindBuiltinProgram(GPU_SHADER_2D_UNIFORM_COLOR); |