]> git.saurik.com Git - wxWidgets.git/commitdiff
Applied [ 1223122 ] [wxMSW] Proper repainting when resizing - take 2
authorJulian Smart <julian@anthemion.co.uk>
Tue, 21 Jun 2005 16:06:45 +0000 (16:06 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 21 Jun 2005 16:06:45 +0000 (16:06 +0000)
Jamie Gadd

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/window.cpp

index c331becad037a71996219d7a8ae42452b0a12b9f..d959e2d5ff77d27acc11cfc92701a2eaea5f09c4 100644 (file)
@@ -2366,15 +2366,11 @@ WXLRESULT wxWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM l
                     AutoHRGN hrgnClient(::CreateRectRgnIndirect(&rc));
                     AutoHRGN hrgnNew(::CreateRectRgn(lpPos->x,  lpPos->y,
                                                      lpPos->cx, lpPos->cy));
-                    AutoHRGN hrgn(::CreateRectRgn(0, 0, 0, 0));
 
                     // we need to invalidate any new exposed areas here
                     // to force them to repaint
-                    if ( ::CombineRgn(hrgn, hrgnNew, hrgnClient, RGN_DIFF) != NULLREGION )
-                        ::InvalidateRgn(GetHwnd(), hrgn, TRUE);
-                    if ( ::CombineRgn(hrgn, hrgnClient, hrgnNew, RGN_DIFF) != NULLREGION )
-                        ::InvalidateRgn(GetHwnd(), hrgn, TRUE);
-
+                    if ( ::CombineRgn(hrgnNew, hrgnNew, hrgnClient, RGN_DIFF) != NULLREGION )
+                        ::InvalidateRgn(GetHwnd(), hrgnNew, TRUE);
                 }
             }
             break;