STR #1051: fl_wait() would only flush damaged window areas if there were any messages pending. Since FLTK does redraws even if there is no WM_PAINT pending, this was not working all the time.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4617 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher
2005-11-02 09:51:27 +00:00
parent abfa63b895
commit 5a19010190
+1 -1
View File
@@ -288,7 +288,6 @@ int fl_wait(double time_to_wait) {
DispatchMessage(&fl_msg);
have_message = PeekMessage(&fl_msg, NULL, 0, 0, PM_REMOVE);
}
Fl::flush();
}
// idle processing
@@ -300,6 +299,7 @@ int fl_wait(double time_to_wait) {
}
run_checks();
Fl::flush();
// This should return 0 if only timer events were handled:
return 1;