From 5f96ece638c689bf4ed0555d2ecd7a6fb299eba0 Mon Sep 17 00:00:00 2001
From: Bill Spitzak <spitzak@gmail.com>
Date: Sun, 22 Apr 2001 16:54:23 +0000
Subject: [PATCH] Another fix for WM_SYNCPAINT from Matt

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1437 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
---
 src/Fl_win32.cxx | 7 +++++--
 1 file 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 $".
 //
-- 
GitLab