mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[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.
This commit is contained in:
parent
c00dc46863
commit
0e4db883e5
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue