Skip to content

Commit

Permalink
Fix return value of Fl::check(). This fixes the "cube" demo and possibly
Browse files Browse the repository at this point in the history
other programs.

-Carl


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@420 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Carl E. Thompson committed Mar 12, 1999
1 parent 8436538 commit fcaa424
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Fl.cxx
@@ -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).
//
Expand Down Expand Up @@ -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() {
Expand Down Expand Up @@ -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 $".
//

0 comments on commit fcaa424

Please sign in to comment.