diff options
| author | Carl E. Thompson <devel-fltk@carlthompson.net> | 1999-03-12 19:17:53 +0000 |
|---|---|---|
| committer | Carl E. Thompson <devel-fltk@carlthompson.net> | 1999-03-12 19:17:53 +0000 |
| commit | fcaa42485f4ffaebc1b881934b2407e1c1115955 (patch) | |
| tree | 510a0669570b966a2bf34721ee4c1932e5c9f08b /src | |
| parent | 8436538ba4f94f8c11301a03a1aedfd4bcd6383f (diff) | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx index 0d1267df4..25c012f36 100644 --- a/src/Fl.cxx +++ b/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). // @@ -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 $". // |
