changeset 18508:bcc88f8f071d stable

Ensure anti-aliasing in fltk plots (patch #8259) fltk's OpenGL window allows an anti-aliasing option. This patch enables it. * __init_fltk__.cc (OpenGL_fltk::OpenGL_fltk, plot_window::plot_window): Add FL_MULTISAMPLE as another OpenGL ability of the plot window.
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Thu, 16 Jan 2014 16:26:56 -0500
parents 35100920494f
children fdd27f68b011
files libinterp/dldfcn/__init_fltk__.cc
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/dldfcn/__init_fltk__.cc	Thu Feb 20 10:11:57 2014 +0100
+++ b/libinterp/dldfcn/__init_fltk__.cc	Thu Jan 16 16:26:56 2014 -0500
@@ -111,7 +111,7 @@
       in_zoom (false), zoom_box (),  print_mode (false)
   {
     // Ask for double buffering and a depth buffer.
-    mode (FL_DEPTH | FL_DOUBLE);
+    mode (FL_DEPTH | FL_DOUBLE | FL_MULTISAMPLE);
   }
 
   ~OpenGL_fltk (void) { }
@@ -752,7 +752,7 @@
       status->box (FL_ENGRAVED_BOX);
 
       // This allows us to have a valid OpenGL context right away.
-      canvas->mode (FL_DEPTH | FL_DOUBLE );
+      canvas->mode (FL_DEPTH | FL_DOUBLE | FL_MULTISAMPLE);
       if (fp.is_visible ())
         {
           // FIXME: This code should be removed when Octave drops support