summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBill Spitzak <spitzak@gmail.com>1999-03-05 05:52:42 +0000
committerBill Spitzak <spitzak@gmail.com>1999-03-05 05:52:42 +0000
commit8be248edbc1e1fce03f2535cbe5e1d14de8655c0 (patch)
treef93e726e47fc58ae0125d113feeed22acf275045 /src
parent9fdae51b8c687674bada77125e91bf2b80967e72 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/Fl.cxx9
1 files 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 $".
//