projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac73ba7
)
[NtGDI] Use flag for text align mode.
author
James Tabor
<james.tabor@reactos.org>
Mon, 4 Mar 2019 18:17:00 +0000
(12:17 -0600)
committer
James Tabor
<james.tabor@reactos.org>
Mon, 4 Mar 2019 18:17:00 +0000
(12:17 -0600)
Use the lTextAlign instead of the user one for internal use.
win32ss/gdi/ntgdi/dcutil.c
patch
|
blob
|
history
diff --git
a/win32ss/gdi/ntgdi/dcutil.c
b/win32ss/gdi/ntgdi/dcutil.c
index
ca9e4c9
..
aa130f0
100644
(file)
--- 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;
}