changeset 21341:ae384d86196e

Print figure background from OpenGL toolkits (bug #47240). * gl2ps-print.cc (gl2ps_renderer::draw): Add GL2PS_DRAW_BACKGROUND to options in call to gl2psBeginPage.
author Rik <rik@octave.org>
date Wed, 24 Feb 2016 10:48:44 -0800
parents 9f838471a5da
children 798273bbe551
files libinterp/corefcn/gl2ps-print.cc
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/gl2ps-print.cc	Wed Feb 24 13:09:31 2016 -0500
+++ b/libinterp/corefcn/gl2ps-print.cc	Wed Feb 24 10:48:44 2016 -0800
@@ -227,13 +227,14 @@
           else
             include_graph = "foobar-inc";
 
-          // GL2PS_SILENT was removed to allow gl2ps printing errors on stderr
+          // GL2PS_SILENT was removed to allow gl2ps to print errors on stderr
           GLint ret = gl2psBeginPage ("gl2ps_renderer figure", "Octave", 0,
                                       gl2ps_term, gl2ps_sort,
                                       (GL2PS_NO_BLENDING
                                        | GL2PS_OCCLUSION_CULL
                                        | GL2PS_BEST_ROOT
                                        | gl2ps_text
+                                       | GL2PS_DRAW_BACKGROUND
                                        | GL2PS_NO_PS3_SHADING
                                        | GL2PS_USE_CURRENT_VIEWPORT),
                                       GL_RGBA, 0, 0, 0, 0, 0,