Fix return value of Fl::check(). This fixes the "cube" demo and possibly

other programs.

-Carl


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@420 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Carl E. Thompson 1999-03-12 19:17:53 +00:00
parent 8436538ba4
commit fcaa42485f

View File

@ -1,5 +1,5 @@
//
// "$Id: Fl.cxx,v 1.24 1999/03/05 05:52:42 bill Exp $"
// "$Id: Fl.cxx,v 1.24.2.1 1999/03/12 19:17:53 carl Exp $"
//
// Main event handling code for the Fast Light Tool Kit (FLTK).
//
@ -225,7 +225,7 @@ int Fl::check() {
if (numtimeouts) {fl_elapsed(); call_timeouts();}
fl_wait(1, 0.0);
flush();
return !Fl_X::first; // no windows
return Fl_X::first ? 1 : 0; // return 0 if no windows
}
int Fl::ready() {
@ -682,5 +682,5 @@ int fl_old_shortcut(const char* s) {
}
//
// End of "$Id: Fl.cxx,v 1.24 1999/03/05 05:52:42 bill Exp $".
// End of "$Id: Fl.cxx,v 1.24.2.1 1999/03/12 19:17:53 carl Exp $".
//