[WIN32SS][NTUSER] Addendum to 0.4.12-dev-956-g0197c4f CORE-15893
authorJoachim Henze <Joachim.Henze@reactos.org>
Mon, 10 Jun 2019 13:38:23 +0000 (15:38 +0200)
committerJoachim Henze <Joachim.Henze@reactos.org>
Mon, 10 Jun 2019 13:38:23 +0000 (15:38 +0200)
Aims PixelPerfection for a regression that was introduced by
0.4.12-dev-954-g
1f619b27814f3bbf9673754a69bcae50c89fed19

and then improved already by
0.4.12-dev-956-g
0197c4f875d3332dbc4656a6360e3c7e9def2ed5

The tweaking got ack of Jim Tabor. Test results:
https://reactos.org/testman/compare.php?ids=68026,68029

cherry-picked from 0.4.13-dev-397-g
3cc50cedaf5e74041608d403054d1fe6394596e6

win32ss/user/ntuser/winpos.c

index 3b1e9de..eaf3b37 100644 (file)
@@ -960,7 +960,7 @@ co_WinPosGetMinMaxInfo(PWND Window, POINT* MaxSize, POINT* MaxPos,
 
     // Handle special case while maximized. CORE-15893
     if ((adjustedStyle & WS_THICKFRAME) && !(adjustedStyle & WS_CHILD) && !(adjustedStyle & WS_MINIMIZE))
-         adjust += 2;
+         adjust += 1;
 
     xinc = yinc = adjust;