mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
[WIN32K]
- Access the DC member directly instead of using IntGdiGetDCOrg - Remove unused IntGdiGetDCOrg, GdiSetDCOrg, GdiGetDCOrgEx svn path=/trunk/; revision=50281
This commit is contained in:
parent
c855b45934
commit
53d46bda12
3 changed files with 2 additions and 45 deletions
|
@ -1152,49 +1152,6 @@ IntptlBrushOrigin(PDC pdc, LONG x, LONG y )
|
|||
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
|
||||
VOID FASTCALL
|
||||
DC_vGetAspectRatioFilter(PDC pDC, LPSIZE AspectRatio)
|
||||
|
|
|
@ -2051,7 +2051,7 @@ PATH_ExtTextOut(PDC dc, INT x, INT y, UINT flags, const RECTL *lprc,
|
|||
sinEsc = 0;
|
||||
}
|
||||
|
||||
IntGdiGetDCOrg(dc, &org);
|
||||
org = dc->ptlDCOrig;
|
||||
|
||||
for (idx = 0; idx < count; idx++)
|
||||
{
|
||||
|
|
|
@ -3705,7 +3705,7 @@ NtGdiGetRandomRgn(
|
|||
}
|
||||
if (iCode == SYSRGN)
|
||||
{
|
||||
IntGdiGetDCOrg(pDC, &org);
|
||||
org = pDC->ptlDCOrig;
|
||||
NtGdiOffsetRgn(hDest, org.x, org.y );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue