From bb014f4a09322192267d6b8d511c08e470ab0fb7 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Tue, 12 Feb 2008 15:34:16 -0600 Subject: [PATCH] Switch canvas to double-buffering after all as it seems not to result in any speed decrease, but leave canvas widget as subwindow. --- gui/ui.fl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gui/ui.fl b/gui/ui.fl index 5de6347..d970c0c 100644 --- a/gui/ui.fl +++ b/gui/ui.fl @@ -1330,12 +1330,12 @@ return processed;} {} decl {\#include } {public } -class O_Canvas {open : {public Fl_Single_Window} +class O_Canvas {open : {public Fl_Double_Window} } { decl {Canvas *_c;} {} decl {bool _border_drawn;} {} decl {uint _flags;} {} - Function {O_Canvas( int X, int Y, int W, int H, const char*L=0) : Fl_Single_Window(X,Y,W,H,L)} {open + Function {O_Canvas( int X, int Y, int W, int H, const char*L=0) : Fl_Double_Window(X,Y,W,H,L)} {open selected } { code {_c = NULL; _border_drawn = false; @@ -1450,8 +1450,7 @@ if ( _c ) else { WARNING( "No canvas set for widget." ); -}} {selected - } +}} {} } Function {set_canvas( Canvas *c )} {open } {