From 6de77851feee37f407b198e38910cb8a38ada157 Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Wed, 22 Apr 2009 07:57:35 +0000 Subject: unittests modified for Fl_Double_Window to prevent flicker. Extension of r6772. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6774 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- test/unittests.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/unittests.cxx b/test/unittests.cxx index d2c72dd9d..0a3d6e232 100644 --- a/test/unittests.cxx +++ b/test/unittests.cxx @@ -32,7 +32,7 @@ // v1.1 - Matthias seperated all tests into multiple source files for hopefully easier handling #include -#include +#include #include #include #include @@ -105,10 +105,10 @@ UnitTest *UnitTest::fTest[]; // 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 @@ public: 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(); } -- cgit v1.2.3