mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 08:25:48 +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;
|
pdcattr = dc->pdcattr;
|
||||||
prevAlign = pdcattr->lTextAlign;
|
prevAlign = pdcattr->lTextAlign;
|
||||||
pdcattr->lTextAlign = Mode;
|
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);
|
DC_UnlockDc(dc);
|
||||||
return prevAlign;
|
return prevAlign;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue