diff options
| author | Bill Spitzak <spitzak@gmail.com> | 2001-04-22 16:54:23 +0000 |
|---|---|---|
| committer | Bill Spitzak <spitzak@gmail.com> | 2001-04-22 16:54:23 +0000 |
| commit | 5f96ece638c689bf4ed0555d2ecd7a6fb299eba0 (patch) | |
| tree | 6c9b64357a552eb831cb48369329494b4b01d387 /src | |
| parent | 5389d201337b84a1a46ccb1dc278596a23fca0df (diff) | |
Another fix for WM_SYNCPAINT from Matt
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1437 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_win32.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index 0124bbfe2..a83e6307e 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_win32.cxx,v 1.33.2.32 2001/04/13 17:30:21 spitzak Exp $" +// "$Id: Fl_win32.cxx,v 1.33.2.33 2001/04/22 16:54:23 spitzak Exp $" // // WIN32-specific code for the Fast Light Tool Kit (FLTK). // @@ -426,6 +426,9 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPar // all applications. static int cnt=0; if (uMsg == WM_SYNCPAINT) { + MSG msg; + if ( PeekMessage( &msg, hWnd, WM_PAINT, WM_PAINT, false )==0 ) + InvalidateRect(hWnd,0,FALSE); if (cnt) { InvalidateRect(fl_window,0,FALSE); cnt = 0; @@ -952,5 +955,5 @@ void Fl_Window::make_current() { } // -// End of "$Id: Fl_win32.cxx,v 1.33.2.32 2001/04/13 17:30:21 spitzak Exp $". +// End of "$Id: Fl_win32.cxx,v 1.33.2.33 2001/04/22 16:54:23 spitzak Exp $". // |
