From fcaa42485f4ffaebc1b881934b2407e1c1115955 Mon Sep 17 00:00:00 2001 From: "Carl E. Thompson" Date: Fri, 12 Mar 1999 19:17:53 +0000 Subject: 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 --- src/Fl.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 $". // -- cgit v1.2.3