Another fix for WM_SYNCPAINT from Matt

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1437 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Bill Spitzak 2001-04-22 16:54:23 +00:00
parent 5389d20133
commit 5f96ece638
1 changed files with 5 additions and 2 deletions

View File

@ -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 $".
//