From 6a9540715abb6477b2a55e0a54246bfea66dfb95 Mon Sep 17 00:00:00 2001 From: Diederick Niehorster Date: Mon, 6 Aug 2012 15:05:10 +0000 Subject: [PATCH] also add an InvalidateRect call before the BeginPaint in WM_PAINT handler.this ensures the whole window is repainted, and hopefully fixes some bug reports. git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1384 7f0cb862-5218-0410-a997-914c9d46530a --- src/mswin/fg_main_mswin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mswin/fg_main_mswin.c b/src/mswin/fg_main_mswin.c index e8f9ff8..d778d67 100644 --- a/src/mswin/fg_main_mswin.c +++ b/src/mswin/fg_main_mswin.c @@ -559,7 +559,7 @@ LRESULT CALLBACK fgPlatformWindowProc( HWND hWnd, UINT uMsg, WPARAM wParam, case WM_PAINT: /* Turn on the visibility in case it was turned off somehow */ window->State.Visible = GL_TRUE; - InvalidateRect( hWnd, NULL, GL_FALSE ); /* Make sure whole window is repainted. Bt of a hack, but a safe on from what google turns up... */ + InvalidateRect( hWnd, NULL, GL_FALSE ); /* Make sure whole window is repainted. Bit of a hack, but a safe on from what google turns up... */ BeginPaint( hWnd, &ps ); fghRedrawWindow( window ); EndPaint( hWnd, &ps ); -- 1.7.10.4