https://git.reactos.org/?p=reactos.git;a=commitdiff;h=9c0eee03335d4edc893c2…
commit 9c0eee03335d4edc893c2369678f808a3b4aae11
Author: Doug Lyons <douglyons(a)douglyons.com>
AuthorDate: Wed Aug 28 02:56:28 2024 -0500
Commit: GitHub <noreply(a)github.com>
CommitDate: Wed Aug 28 02:56:28 2024 -0500
[NTUSER] Fix window not updating when scrollbars created and removed. (#7245)
* Revise conditions for window complete redraw.
CORE-19669
Co-authored-by: Oleg Dubinskiy <oleg.dubinskij30(a)gmail.com>
Co-authored-by: Vitaly Orekhov <7opex0(a)mail.ru>
---
win32ss/user/ntuser/winpos.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/win32ss/user/ntuser/winpos.c b/win32ss/user/ntuser/winpos.c
index f69f39bd7ed..7256f59ad56 100644
--- a/win32ss/user/ntuser/winpos.c
+++ b/win32ss/user/ntuser/winpos.c
@@ -2047,11 +2047,11 @@ co_WinPosSetWindowPos(
* class need to be completely repainted on (horizontal/vertical) size
* change.
*/
- if ( ( VisBefore != NULL &&
- VisAfter != NULL &&
- !(WinPos.flags & SWP_NOCOPYBITS) &&
- ((WinPos.flags & SWP_NOSIZE) || !(WvrFlags & WVR_REDRAW)) &&
- !(Window->ExStyle & WS_EX_TRANSPARENT) ) )
+ if (VisBefore != NULL &&
+ VisAfter != NULL &&
+ !(WvrFlags & WVR_REDRAW) &&
+ !(WinPos.flags & SWP_NOCOPYBITS) &&
+ !(Window->ExStyle & WS_EX_TRANSPARENT))
{
/*