forked from reactos/reactos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 parent
d00d883
commit 49dbc8f
Showing
1 changed file
with
9 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
|
@@ -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. | ||
} | ||
} | ||
|
||
|