From: Katayama Hirofumi MZ Date: Fri, 26 Jul 2019 10:13:00 +0000 (+0900) Subject: [WIN32SS][NTGDI] text/font vertical alignment patch CORE-16133 X-Git-Tag: 0.4.14-dev~519 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=0e4db883e5727569b5c3a35da3a6f8c5e921bbf3 [WIN32SS][NTGDI] text/font vertical alignment patch CORE-16133 Based on Doug Lyons' patch. It partially fix CORE-16246 and CORE-16133. Selection area is not fixed yet. --- diff --git a/win32ss/gdi/ntgdi/freetype.c b/win32ss/gdi/ntgdi/freetype.c index 4e4d4f6f8fd..162df2a2708 100644 --- a/win32ss/gdi/ntgdi/freetype.c +++ b/win32ss/gdi/ntgdi/freetype.c @@ -5916,9 +5916,9 @@ IntExtTextOutW( * Process the vertical alignment and determine the yoff. */ #define VALIGN_MASK (TA_TOP | TA_BASELINE | TA_BOTTOM) - if ((pdcattr->lTextAlign & VALIGN_MASK) == TA_BASELINE) + if ((pdcattr->flTextAlign & VALIGN_MASK) == TA_BASELINE) yoff = 0; - else if ((pdcattr->lTextAlign & VALIGN_MASK) == TA_BOTTOM) + else if ((pdcattr->flTextAlign & VALIGN_MASK) == TA_BOTTOM) yoff = -(fixDescender >> 6); else /* TA_TOP */ yoff = fixAscender >> 6;