summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/unittests.cxx38
1 files changed, 33 insertions, 5 deletions
diff --git a/test/unittests.cxx b/test/unittests.cxx
index a7a8c07d2..49a236640 100644
--- a/test/unittests.cxx
+++ b/test/unittests.cxx
@@ -1,6 +1,29 @@
-
-
-
+//
+// "$Id$"
+//
+// Unit tests for the Fast Light Tool Kit (FLTK).
+//
+// Copyright 1998-2005 by Bill Spitzak and others.
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Library General Public
+// License as published by the Free Software Foundation; either
+// version 2 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Library General Public License for more details.
+//
+// You should have received a copy of the GNU Library General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+// USA.
+//
+// Please report all bugs and problems on the following page:
+//
+// http://www.fltk.org/str.php
+//
#include <FL/Fl.H>
#include <FL/x.H>
@@ -14,8 +37,8 @@ Fl_Window *win = 0;
int point_test_ix, line_test_ix, rect_test_ix, viewport_test_ix, circle_test_ix;
void changePageCB(Fl_Widget*, void *ixvp) {
- int ix = (int)ixvp;
- int i = 0, n = win->children();
+ long ix = (long)ixvp;
+ long i = 0, n = win->children();
for ( ; i<n; i++)
win->child(i)->hide();
if (ix>=n || ix<0) ix = n-1;
@@ -269,3 +292,8 @@ int main(int argc, char **argv) {
win->show(argc, argv);
return Fl::run();
}
+
+
+//
+// End of "$Id$".
+//