[WIN32SS][MENU] Fix menu text Y positioning (#887)

Fix the vertical position of menu bar text. CORE-15094
This commit is contained in:
Katayama Hirofumi MZ 2018-10-24 19:54:41 +09:00 committed by GitHub
parent 375a78e706
commit 3545475f91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 */