summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGreg Ercolano <erco@seriss.com>2009-04-22 07:57:35 +0000
committerGreg Ercolano <erco@seriss.com>2009-04-22 07:57:35 +0000
commit6de77851feee37f407b198e38910cb8a38ada157 (patch)
tree9a3412e14611c647ee5d28d68ad938ba64f3efb8 /test
parenteb70e46d2ad340145e48ae7272edb520e6c0d449 (diff)
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
Diffstat (limited to 'test')
-rw-r--r--test/unittests.cxx8
1 files 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 <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 @@ 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();
}