From b1a989ba148828b8329e4f15b8fcd2ccf165ec8f Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Sun, 17 Jan 2010 23:48:50 -0600 Subject: [PATCH] Mixer: Use doublebuffering for main window. --- Mixer/main.C | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Mixer/main.C b/Mixer/main.C index 29ad5a1..96bc513 100644 --- a/Mixer/main.C +++ b/Mixer/main.C @@ -18,8 +18,7 @@ /*******************************************************************************/ #include -#include -#include +#include #include #include #include "Mixer_Strip.H" @@ -37,8 +36,6 @@ Mixer *mixer; -Fl_Single_Window *main_window; - #include #include "Loggable.H" #include @@ -98,8 +95,10 @@ main ( int argc, char **argv ) /* Fl::foreground( 0xFF, 0xFF, 0xFF ); */ /* Fl::background( 0x10, 0x10, 0x10 ); */ + Fl_Double_Window *main_window; + { - Fl_Single_Window *o = main_window = new Fl_Single_Window( 1024, 768, "Mixer" ); + Fl_Double_Window *o = main_window = new Fl_Double_Window( 1024, 768, "Mixer" ); { Fl_Widget *o = mixer = new Mixer( 0, 0, main_window->w(), main_window->h(), NULL ); Fl_Group::current()->resizable(o);