From: Diederick Niehorster Date: Mon, 6 Aug 2012 15:05:10 +0000 (+0000) Subject: also add an InvalidateRect call before the BeginPaint in WM_PAINT X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=6a9540715abb6477b2a55e0a54246bfea66dfb95;p=freeglut 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 --- 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 );