https://git.reactos.org/?p=reactos.git;a=commitdiff;h=49dbc8fbbb090812d21ac10e79d42c787638e2ec

commit 49dbc8fbbb090812d21ac10e79d42c787638e2ec
Author:     Joachim Henze <[email protected]>
AuthorDate: Sun Aug 20 01:41:28 2023 +0200
Commit:     Joachim Henze <[email protected]>
CommitDate: Sun Aug 20 01:41:28 2023 +0200

    [NTUSER] Whitspace-fixes winpos.c
    
    I just can't stand that whitespace-diff at those 2 if-conditions any longer,
    which was introduced into co_WinPosSetWindowPos() by
    0.4.13-dev-8-g cfdf36e44250048b3377f333c93bc311e424ac3d
    Everytime I port something back, I don't know where to put that diff 
temporarily.
    And I don't want to make the older branches worse as well.
    So finally squeeze it out at right-hand-side in master head.
---
 win32ss/user/ntuser/winpos.c | 19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)

diff --git a/win32ss/user/ntuser/winpos.c b/win32ss/user/ntuser/winpos.c
index 45c721de368..2ec319505d1 100644
--- a/win32ss/user/ntuser/winpos.c
+++ b/win32ss/user/ntuser/winpos.c
@@ -1,10 +1,9 @@
 /*
- * COPYRIGHT:        See COPYING in the top level directory
- * PROJECT:          ReactOS kernel
- * PURPOSE:          Windows
- * FILE:             win32ss/user/ntuser/winpos.c
- * PROGRAMER:        Casper S. Hornstrup ([email protected])
- *                   Katayama Hirofumi MZ ([email protected])
+ * COPYRIGHT:   See COPYING in the top level directory
+ * PROJECT:     ReactOS kernel
+ * PURPOSE:     Windows
+ * PROGRAMER:   Casper S. Hornstrup ([email protected])
+ *              Katayama Hirofumi MZ ([email protected])
  */
 
 #include <win32k.h>
@@ -2175,7 +2174,7 @@ co_WinPosSetWindowPos(
                 }
                 IntInvalidateWindows(Window, DirtyRgn, RDW_ERASE | RDW_FRAME | 
RDW_INVALIDATE | RDW_ALLCHILDREN);
              }
-             else if ( RgnType != ERROR && RgnType == NULLREGION ) // Must be 
the same. See CORE-7166 & CORE-15934, NC HACK fix.
+             else if (RgnType != ERROR && RgnType == NULLREGION) // Must be 
the same. See CORE-7166 & CORE-15934, NC HACK fix.
              {
                 if ( !PosChanged &&
                      !(WinPos.flags & SWP_DEFERERASE) &&
@@ -2224,7 +2223,7 @@ co_WinPosSetWindowPos(
       }
 
       /* Expose what was covered before but not covered anymore */
-      if ( VisBefore != NULL )
+      if (VisBefore != NULL)
       {
          PREGION ExposedRgn = IntSysCreateRectpRgn(0, 0, 0, 0);
          if (ExposedRgn)
@@ -2234,7 +2233,7 @@ co_WinPosSetWindowPos(
                                OldWindowRect.left - NewWindowRect.left,
                                OldWindowRect.top  - NewWindowRect.top);
 
-             if ( VisAfter != NULL )
+             if (VisAfter != NULL)
                 RgnType = IntGdiCombineRgn(ExposedRgn, ExposedRgn, VisAfter, 
RGN_DIFF);
 
              if (RgnType != ERROR && RgnType != NULLREGION)
@@ -2282,7 +2281,7 @@ co_WinPosSetWindowPos(
        if ( !(Window->style & WS_CHILD) && (Parent) && (Parent->style & 
WS_CLIPCHILDREN))
        {
            TRACE("SWP_FRAMECHANGED Parent %p WS_CLIPCHILDREN 
%p\n",Parent,Window);
-           UserSyncAndPaintWindows( Parent, RDW_CLIPCHILDREN); // NC should 
redraw here, see NC HACK fix.
+           UserSyncAndPaintWindows(Parent, RDW_CLIPCHILDREN); // NC should 
redraw here, see NC HACK fix.
        }
    }
 

Reply via email to