summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2005-11-02 09:51:27 +0000
committerMatthias Melcher <fltk@matthiasm.com>2005-11-02 09:51:27 +0000
commit5a190101905d605c9ebc7ba7ebadcf415c0d58f2 (patch)
tree00a619e85f1596130227409f384d0952022a3729 /src
parentabfa63b895d6b4c07666099ec036b0cb2cdda28f (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/Fl_win32.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx
index 4eb2a1262..215e2861e 100644
--- a/src/Fl_win32.cxx
+++ b/src/Fl_win32.cxx
@@ -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;