From 0a5f303608ad6f662562c7f53a8e0d2e39fe60af Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Mon, 28 Oct 2002 15:15:24 +0000 Subject: Possible fix for WIN32 redraw lockup (mainly with menus) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2695 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_win32.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index 923adecc2..e6279f04f 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_win32.cxx,v 1.33.2.37.2.39 2002/10/22 17:39:12 easysw Exp $" +// "$Id: Fl_win32.cxx,v 1.33.2.37.2.40 2002/10/28 15:15:24 easysw Exp $" // // WIN32-specific code for the Fast Light Tool Kit (FLTK). // @@ -598,7 +598,6 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPar } else { i->region = R; } - ValidateRgn(hWnd,i->region); window->clear_damage(window->damage()|FL_DAMAGE_EXPOSE); // These next two statements should not be here, so that all update // is deferred until Fl::flush() is called during idle. However WIN32 @@ -608,6 +607,7 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPar fl_save_pen(); i->flush(); fl_restore_pen(); + ValidateRgn(hWnd,i->region); window->clear_damage(); } return 0; @@ -1186,5 +1186,5 @@ void Fl_Window::make_current() { } // -// End of "$Id: Fl_win32.cxx,v 1.33.2.37.2.39 2002/10/22 17:39:12 easysw Exp $". +// End of "$Id: Fl_win32.cxx,v 1.33.2.37.2.40 2002/10/28 15:15:24 easysw Exp $". // -- cgit v1.2.3