https://git.reactos.org/?p=reactos.git;a=commitdiff;h=cf7bea11b2b15c0ce6734d...
commit cf7bea11b2b15c0ce6734dd84225bf93f2fe9e15 Author: James Tabor james.tabor@reactos.org AuthorDate: Mon Mar 4 12:17:00 2019 -0600 Commit: James Tabor james.tabor@reactos.org CommitDate: Mon Mar 4 12:17:00 2019 -0600
[NtGDI] Use flag for text align mode.
Use the lTextAlign instead of the user one for internal use. --- win32ss/gdi/ntgdi/dcutil.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/win32ss/gdi/ntgdi/dcutil.c b/win32ss/gdi/ntgdi/dcutil.c index ca9e4c9929..aa130f02d7 100644 --- a/win32ss/gdi/ntgdi/dcutil.c +++ b/win32ss/gdi/ntgdi/dcutil.c @@ -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; }