mirror of
https://github.com/reactos/reactos.git
synced 2024-07-05 12:15:46 +00:00
[NtGDI]
- Patch by Sebastian Gasiorek : Fix incorrect placement of the text in the Tab buttons. Implement TA_UPDATECP. See CORE-1578 and CORE-11415. svn path=/trunk/; revision=72521
This commit is contained in:
parent
303ece2421
commit
8496d0aa2e
|
@ -3408,9 +3408,15 @@ GreExtTextOutW(
|
|||
IntLPtoDP(dc, (POINT *)lprc, 2);
|
||||
}
|
||||
|
||||
Start.x = XStart;
|
||||
Start.y = YStart;
|
||||
IntLPtoDP(dc, &Start, 1);
|
||||
if(pdcattr->lTextAlign & TA_UPDATECP)
|
||||
{
|
||||
Start.x = pdcattr->ptlCurrent.x;
|
||||
Start.y = pdcattr->ptlCurrent.y;
|
||||
} else {
|
||||
Start.x = XStart;
|
||||
Start.y = YStart;
|
||||
IntLPtoDP(dc, &Start, 1);
|
||||
}
|
||||
|
||||
RealXStart = ((LONGLONG)Start.x + dc->ptlDCOrig.x) << 6;
|
||||
YStart = Start.y + dc->ptlDCOrig.y;
|
||||
|
@ -3842,6 +3848,11 @@ GreExtTextOutW(
|
|||
|
||||
String++;
|
||||
}
|
||||
|
||||
if (pdcattr->lTextAlign & TA_UPDATECP) {
|
||||
pdcattr->ptlCurrent.x = DestRect.right - dc->ptlDCOrig.x;
|
||||
}
|
||||
|
||||
IntUnLockFreeType;
|
||||
|
||||
DC_vFinishBlit(dc, NULL) ;
|
||||
|
|
Loading…
Reference in a new issue