mirror of
https://github.com/fltk/fltk.git
synced 2026-05-21 22:51:41 +08:00
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:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user