[NtGDI] Use flag for text align mode.

Use the lTextAlign instead of the user one for internal use.
This commit is contained in:
James Tabor 2019-03-04 12:17:00 -06:00
parent ac73ba7db6
commit cf7bea11b2

View file

@ -158,6 +158,11 @@ IntGdiSetTextAlign(HDC hDC,
pdcattr = dc->pdcattr;
prevAlign = pdcattr->lTextAlign;
pdcattr->lTextAlign = Mode;
if (pdcattr->dwLayout & LAYOUT_RTL)
{
if ((Mode & TA_CENTER) != TA_CENTER) Mode ^= TA_RIGHT;
}
pdcattr->flTextAlign = Mode & TA_MASK;
DC_UnlockDc(dc);
return prevAlign;
}