diff libinterp/corefcn/gl-render.cc @ 24807:8585b3f9c28c

Use "butt" linecap to workaround split lines in printout (bug #53229). * gl-render.cc (opengl_renderer::draw_axes_grids): Set linecap "butt" to avoid split line intersections where transparency may occur. (opengl_renderer::draw_axes_boxes): Set linecap "square" here to fake polyline intersections at the corners.
author Pantxo Diribarne <pantxo.diribarne@gmail.com>
date Mon, 26 Feb 2018 21:22:43 +0100
parents edef866fba7b
children 6652d3823428
line wrap: on
line diff
--- a/libinterp/corefcn/gl-render.cc	Wed Feb 28 09:56:15 2018 -0800
+++ b/libinterp/corefcn/gl-render.cc	Mon Feb 26 21:22:43 2018 +0100
@@ -1239,6 +1239,7 @@
 
     // Axes box
 
+    set_linecap ("square");
     set_linestyle ("-", true, linewidth);
 
     glBegin (GL_LINES);
@@ -1900,7 +1901,7 @@
     if (antialias == GL_TRUE)
       glDisable (GL_LINE_SMOOTH);
 
-    set_linecap ("square");
+    set_linecap ("butt");
     set_linewidth (props.get_linewidth ());
     set_font (props);
     set_interpreter (props.get_ticklabelinterpreter ());