changeset 18293:c6e5466d74fe gui-release

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 78c3b4cb0c7f
children 01646e48a650
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	Wed Jan 15 15:23:46 2014 -0500
+++ 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