Switch canvas to double-buffering after all as it seems not to result

in any speed decrease, but leave canvas widget as subwindow.
pull/3/head
Jonathan Moore Liles 2008-02-12 15:34:16 -06:00
parent a71ba1cbba
commit bb014f4a09
1 changed files with 3 additions and 4 deletions

View File

@ -1330,12 +1330,12 @@ return processed;} {}
decl {\#include <FL/Fl_Single_Window.H>} {public decl {\#include <FL/Fl_Single_Window.H>} {public
} }
class O_Canvas {open : {public Fl_Single_Window} class O_Canvas {open : {public Fl_Double_Window}
} { } {
decl {Canvas *_c;} {} decl {Canvas *_c;} {}
decl {bool _border_drawn;} {} decl {bool _border_drawn;} {}
decl {uint _flags;} {} 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; code {_c = NULL;
_border_drawn = false; _border_drawn = false;
@ -1450,8 +1450,7 @@ if ( _c )
else else
{ {
WARNING( "No canvas set for widget." ); WARNING( "No canvas set for widget." );
}} {selected }} {}
}
} }
Function {set_canvas( Canvas *c )} {open Function {set_canvas( Canvas *c )} {open
} { } {