mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[NtGDI] Use flag for text align mode.
Use the lTextAlign instead of the user one for internal use.
This commit is contained in:
parent
ac73ba7db6
commit
cf7bea11b2
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue