https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3545475f91e666dc0dd6f79430ffb216c2417175

commit 3545475f91e666dc0dd6f79430ffb216c2417175
Author:     Katayama Hirofumi MZ <[email protected]>
AuthorDate: Wed Oct 24 19:54:41 2018 +0900
Commit:     GitHub <[email protected]>
CommitDate: Wed Oct 24 19:54:41 2018 +0900

    [WIN32SS][MENU] Fix menu text Y positioning (#887)
    
    Fix the vertical position of menu bar text. CORE-15094
---
 win32ss/user/ntuser/menu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/win32ss/user/ntuser/menu.c b/win32ss/user/ntuser/menu.c
index 48d9dcc169..f4159030cc 100644
--- a/win32ss/user/ntuser/menu.c
+++ b/win32ss/user/ntuser/menu.c
@@ -2099,7 +2099,7 @@ static void MENU_MenuBarCalcSize( HDC hdc, LPRECT lprect, 
PMENU lppop, PWND pwnd
     //TRACE("lprect %p %s\n", lprect, wine_dbgstr_rect( lprect));
     lppop->cxMenu  = lprect->right - lprect->left;
     lppop->cyMenu = 0;
-    maxY = lprect->top+1;
+    maxY = lprect->top;
     start = 0;
     helpPos = ~0U;
     lppop->cxTextAlign = 0;
@@ -2140,7 +2140,7 @@ static void MENU_MenuBarCalcSize( HDC hdc, LPRECT lprect, 
PMENU lppop, PWND pwnd
        start = i; /* This works! */
     }
 
-    lprect->bottom = maxY;
+    lprect->bottom = maxY + 1;
     lppop->cyMenu = lprect->bottom - lprect->top;
 
     /* Flush right all items between the MF_RIGHTJUSTIFY and */

Reply via email to