Author: tkreuzer
Date: Tue Jan 4 15:52:59 2011
New Revision: 50281
URL:
http://svn.reactos.org/svn/reactos?rev=50281&view=rev
Log:
[WIN32K]
- Access the DC member directly instead of using IntGdiGetDCOrg
- Remove unused IntGdiGetDCOrg, GdiSetDCOrg, GdiGetDCOrgEx
Modified:
trunk/reactos/subsystems/win32/win32k/objects/coord.c
trunk/reactos/subsystems/win32/win32k/objects/path.c
trunk/reactos/subsystems/win32/win32k/objects/region.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/coord.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/coord.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/coord.c [iso-8859-1] Tue Jan 4 15:52:59
2011
@@ -1152,49 +1152,6 @@
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)
Modified: trunk/reactos/subsystems/win32/win32k/objects/path.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/path.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/path.c [iso-8859-1] Tue Jan 4 15:52:59
2011
@@ -2051,7 +2051,7 @@
sinEsc = 0;
}
- IntGdiGetDCOrg(dc, &org);
+ org = dc->ptlDCOrig;
for (idx = 0; idx < count; idx++)
{
Modified: trunk/reactos/subsystems/win32/win32k/objects/region.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/region.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/region.c [iso-8859-1] Tue Jan 4
15:52:59 2011
@@ -3705,7 +3705,7 @@
}
if (iCode == SYSRGN)
{
- IntGdiGetDCOrg(pDC, &org);
+ org = pDC->ptlDCOrig;
NtGdiOffsetRgn(hDest, org.x, org.y );
}