Change int to long in unittests callback, and add the standard FLTK
header/footer text. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4624 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
9944b5ad5a
commit
ebddf5bf94
@ -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$".
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user