From ffe92796d82eb51b4f2b0f90932ea4cee3d4e9be Mon Sep 17 00:00:00 2001
From: Michael R Sweet <michael.r.sweet@gmail.com>
Date: Fri, 26 Jan 2001 13:31:51 +0000
Subject: [PATCH] Add call to GdiFlush() under WIN32.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1359 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
---
 CHANGES    | 7 +++++--
 src/Fl.cxx | 8 +++++---
 2 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/CHANGES b/CHANGES
index e0fc3eb6a..fd10de1d5 100644
--- a/CHANGES
+++ b/CHANGES
@@ -14,13 +14,16 @@ CHANGES SINCE FLTK 1.0.10
 	  and respond to them.
 
 	- "accu-timer": some changes to repeat_timeout that seem
-	  to make it accurate on Unix and Win32 at speeds up to
+	  to make it accurate on Unix and WIN32 at speeds up to
 	  500000 timeouts/second (and 700000 on Linux), and
 	  within about .001% as accurate as the system clock.
 
 	- Fix to Fl_Valuator::step() by Guillermo Andrade.
 
-	- Fixed the write-menu bug introduced in 1.0.10
+	- Fixed the FLUID write-menu bug introduced in 1.0.10
+
+	- Fl::flush() now calls GdiFlush() under WIN32 to
+	  ensure that all graphics are drawn.
 
 
 CHANGES SINCE FLTK 1.0.9
diff --git a/src/Fl.cxx b/src/Fl.cxx
index 3b5156d1d..02afc5f9a 100644
--- a/src/Fl.cxx
+++ b/src/Fl.cxx
@@ -1,5 +1,5 @@
 //
-// "$Id: Fl.cxx,v 1.24.2.39 2001/01/22 15:13:39 easysw Exp $"
+// "$Id: Fl.cxx,v 1.24.2.40 2001/01/26 13:31:51 easysw Exp $"
 //
 // Main event handling code for the Fast Light Tool Kit (FLTK).
 //
@@ -341,7 +341,9 @@ void Fl::flush() {
       }
     }
   }
-#ifndef WIN32
+#ifdef WIN32
+  GdiFlush();
+#else
   if (fl_display) XFlush(fl_display);
 #endif
 }
@@ -781,5 +783,5 @@ void Fl_Window::flush() {
 }
 
 //
-// End of "$Id: Fl.cxx,v 1.24.2.39 2001/01/22 15:13:39 easysw Exp $".
+// End of "$Id: Fl.cxx,v 1.24.2.40 2001/01/26 13:31:51 easysw Exp $".
 //
-- 
GitLab