From 8be248edbc1e1fce03f2535cbe5e1d14de8655c0 Mon Sep 17 00:00:00 2001 From: Bill Spitzak Date: Fri, 5 Mar 1999 05:52:42 +0000 Subject: check() calls flush() after processing events, as requested. This should make no differece and is I think a safe change for 1.0 and we want this behavior to be consistent for later versions. git-svn-id: file:///fltk/svn/fltk/trunk@372 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl.cxx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Fl.cxx b/src/Fl.cxx index d35533080..0d1267df4 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl.cxx,v 1.23 1999/03/04 18:24:44 mike Exp $" +// "$Id: Fl.cxx,v 1.24 1999/03/05 05:52:42 bill Exp $" // // Main event handling code for the Fast Light Tool Kit (FLTK). // @@ -223,10 +223,9 @@ double Fl::wait(double time) { int Fl::check() { callidle(); if (numtimeouts) {fl_elapsed(); call_timeouts();} - flush(); - if (!Fl_X::first) return 0; // no windows fl_wait(1, 0.0); - return 1; + flush(); + return !Fl_X::first; // no windows } int Fl::ready() { @@ -683,5 +682,5 @@ int fl_old_shortcut(const char* s) { } // -// End of "$Id: Fl.cxx,v 1.23 1999/03/04 18:24:44 mike Exp $". +// End of "$Id: Fl.cxx,v 1.24 1999/03/05 05:52:42 bill Exp $". // -- cgit v1.2.3