mirror of
https://github.com/reactos/reactos.git
synced 2024-09-03 09:09:19 +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);
|
IntLPtoDP(dc, (POINT *)lprc, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(pdcattr->lTextAlign & TA_UPDATECP)
|
||||||
|
{
|
||||||
|
Start.x = pdcattr->ptlCurrent.x;
|
||||||
|
Start.y = pdcattr->ptlCurrent.y;
|
||||||
|
} else {
|
||||||
Start.x = XStart;
|
Start.x = XStart;
|
||||||
Start.y = YStart;
|
Start.y = YStart;
|
||||||
IntLPtoDP(dc, &Start, 1);
|
IntLPtoDP(dc, &Start, 1);
|
||||||
|
}
|
||||||
|
|
||||||
RealXStart = ((LONGLONG)Start.x + dc->ptlDCOrig.x) << 6;
|
RealXStart = ((LONGLONG)Start.x + dc->ptlDCOrig.x) << 6;
|
||||||
YStart = Start.y + dc->ptlDCOrig.y;
|
YStart = Start.y + dc->ptlDCOrig.y;
|
||||||
|
@ -3842,6 +3848,11 @@ GreExtTextOutW(
|
||||||
|
|
||||||
String++;
|
String++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (pdcattr->lTextAlign & TA_UPDATECP) {
|
||||||
|
pdcattr->ptlCurrent.x = DestRect.right - dc->ptlDCOrig.x;
|
||||||
|
}
|
||||||
|
|
||||||
IntUnLockFreeType;
|
IntUnLockFreeType;
|
||||||
|
|
||||||
DC_vFinishBlit(dc, NULL) ;
|
DC_vFinishBlit(dc, NULL) ;
|
||||||
|
|
Loading…
Reference in a new issue