Author: greg.ercolano
Date: 2009-04-22 00:57:35 -0700 (Wed, 22 Apr 2009)
New Revision: 6774
Log:
unittests modified for Fl_Double_Window to prevent flicker.
Extension of r6772.



Modified:
   branches/branch-1.3/test/unittests.cxx

Modified: branches/branch-1.3/test/unittests.cxx
===================================================================
--- branches/branch-1.3/test/unittests.cxx      2009-04-21 09:25:22 UTC (rev 
6773)
+++ branches/branch-1.3/test/unittests.cxx      2009-04-22 07:57:35 UTC (rev 
6774)
@@ -32,7 +32,7 @@
 // v1.1 - Matthias seperated all tests into multiple source files for 
hopefully easier handling
 
 #include <FL/Fl.H>
-#include <FL/Fl_Window.H>
+#include <FL/Fl_Double_Window.H>
 #include <FL/Fl_Hold_Browser.H>
 #include <FL/Fl_Help_View.H>
 #include <FL/Fl_Group.H>
@@ -105,10 +105,10 @@
 
 // The main window needs an additional drawing feature in order to support 
 // the viewport alignment test.
-class MainWindow : public Fl_Window {
+class MainWindow : public Fl_Double_Window {
 public:
   MainWindow(int w, int h, const char *l=0L) :
-    Fl_Window(w, h, l),
+    Fl_Double_Window(w, h, l),
     fTestAlignment(0)
   { }
   // this code is used by the viewport alignment test
@@ -136,7 +136,7 @@
     fl_color(FL_BLACK); fl_rect(w()-sze-1, 3, sze-2, sze-2);
   }
   void draw() {
-    Fl_Window::draw();
+    Fl_Double_Window::draw();
     if (fTestAlignment) {
       drawAlignmentIndicators();
     }

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to