# HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 1389907616 18000 # Node ID bcc88f8f071d7ed4263cc05f2d3a5fed3819f77e # Parent 35100920494f23ded930ae53493fa70eb5070c27 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. diff -r 35100920494f -r bcc88f8f071d libinterp/dldfcn/__init_fltk__.cc --- 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