summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBill Spitzak <spitzak@gmail.com>2001-04-13 17:30:21 +0000
committerBill Spitzak <spitzak@gmail.com>2001-04-13 17:30:21 +0000
commitbb86f132ebc530f9d06d441f7d13675efcef1322 (patch)
tree7e56e8df65f1ec3aee5952ba6a9a75571d1d36b2 /src
parent7b7ca88b4961e589f3193b246ad85cd7a869cd75 (diff)
Restored WM_SYNCPAINT handling
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1428 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_win32.cxx17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx
index dbb269fd3..0124bbfe2 100644
--- a/src/Fl_win32.cxx
+++ b/src/Fl_win32.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_win32.cxx,v 1.33.2.31 2001/01/22 15:13:40 easysw Exp $"
+// "$Id: Fl_win32.cxx,v 1.33.2.32 2001/04/13 17:30:21 spitzak Exp $"
//
// WIN32-specific code for the Fast Light Tool Kit (FLTK).
//
@@ -419,13 +419,14 @@ static Fl_Window* resize_bug_fix;
static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
-#if 0
- // Not sure what this is, it may be left over from earlier attempts to
- // treat WM_PAINT as an expose event, rather than painting in response
- // to it.
+#if 1
+ // Matt: When dragging a full window, MSWindows on 'slow'
+ // machines can lose track of the window refresh area. It sends some kind
+ // of panic message to the desktop that in turn sends this message on to
+ // all applications.
static int cnt=0;
- if(uMsg == WM_SYNCPAINT) {
- if(cnt) {
+ if (uMsg == WM_SYNCPAINT) {
+ if (cnt) {
InvalidateRect(fl_window,0,FALSE);
cnt = 0;
} else cnt = 1;
@@ -951,5 +952,5 @@ void Fl_Window::make_current() {
}
//
-// End of "$Id: Fl_win32.cxx,v 1.33.2.31 2001/01/22 15:13:40 easysw Exp $".
+// End of "$Id: Fl_win32.cxx,v 1.33.2.32 2001/04/13 17:30:21 spitzak Exp $".
//