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
This commit is contained in:
Bill Spitzak
1999-03-05 05:52:42 +00:00
parent 9fdae51b8c
commit 8be248edbc
+4 -5
View File
@@ -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 $".
//