- Access the DC member directly instead of using IntGdiGetDCOrg
- Remove unused IntGdiGetDCOrg, GdiSetDCOrg, GdiGetDCOrgEx

svn path=/trunk/; revision=50281
This commit is contained in:
Timo Kreuzer 2011-01-04 15:52:59 +00:00
parent c855b45934
commit 53d46bda12
3 changed files with 2 additions and 45 deletions

View file

@ -1152,49 +1152,6 @@ IntptlBrushOrigin(PDC pdc, LONG x, LONG y )
return &pdc->dclevel.ptlBrushOrigin; return &pdc->dclevel.ptlBrushOrigin;
} }
VOID
APIENTRY
GdiSetDCOrg(HDC hDC, LONG Left, LONG Top, PRECTL prc)
{
PDC pdc;
pdc = DC_LockDc(hDC);
if (!pdc) return;
pdc->ptlDCOrig.x = Left;
pdc->ptlDCOrig.y = Top;
IntCalcFillOrigin(pdc);
if (prc) pdc->erclWindow = *prc;
DC_UnlockDc(pdc);
}
// FIXME: remove me
BOOL FASTCALL
IntGdiGetDCOrg(PDC pDc, PPOINTL ppt)
{
*ppt = pDc->ptlDCOrig;
return TRUE;
}
// FIXME: remove me
BOOL APIENTRY
GdiGetDCOrgEx(HDC hDC, PPOINTL ppt, PRECTL prc)
{
PDC pdc;
pdc = DC_LockDc(hDC);
if (!pdc) return FALSE;
*prc = pdc->erclWindow;
*ppt = pdc->ptlDCOrig;
DC_UnlockDc(pdc);
return TRUE;
}
static static
VOID FASTCALL VOID FASTCALL
DC_vGetAspectRatioFilter(PDC pDC, LPSIZE AspectRatio) DC_vGetAspectRatioFilter(PDC pDC, LPSIZE AspectRatio)

View file

@ -2051,7 +2051,7 @@ PATH_ExtTextOut(PDC dc, INT x, INT y, UINT flags, const RECTL *lprc,
sinEsc = 0; sinEsc = 0;
} }
IntGdiGetDCOrg(dc, &org); org = dc->ptlDCOrig;
for (idx = 0; idx < count; idx++) for (idx = 0; idx < count; idx++)
{ {

View file

@ -3705,7 +3705,7 @@ NtGdiGetRandomRgn(
} }
if (iCode == SYSRGN) if (iCode == SYSRGN)
{ {
IntGdiGetDCOrg(pDC, &org); org = pDC->ptlDCOrig;
NtGdiOffsetRgn(hDest, org.x, org.y ); NtGdiOffsetRgn(hDest, org.x, org.y );
} }