Skip to content

Commit

Permalink
[NTUSER] Whitspace-fixes winpos.c
Browse files Browse the repository at this point in the history
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 cfdf36e
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.
  • Loading branch information
JoachimHenze committed Aug 19, 2023
1 parent d00d883 commit 49dbc8f
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions win32ss/user/ntuser/winpos.c
Original file line number Diff line number Diff line change
@@ -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>
Expand Down Expand Up @@ -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) &&
Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand Down Expand Up @@ -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.
}
}

Expand Down

0 comments on commit 49dbc8f

Please sign in to comment.