mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 01:35:47 +00:00
[WIN32K] Use INTERNAL_LPTODP in IntLPtoDP
Instead of initializing a XFORMOBJ and whatnot
This commit is contained in:
parent
26b5596a11
commit
3bad3c49e1
3 changed files with 5 additions and 5 deletions
|
@ -560,7 +560,7 @@ NtGdiOffsetClipRgn(
|
||||||
apt[0].y = 0;
|
apt[0].y = 0;
|
||||||
apt[1].x = xOffset;
|
apt[1].x = xOffset;
|
||||||
apt[1].y = yOffset;
|
apt[1].y = yOffset;
|
||||||
IntLPtoDP(pdc, &apt, 2);
|
IntLPtoDP(pdc, apt, 2);
|
||||||
|
|
||||||
/* Offset the clip region */
|
/* Offset the clip region */
|
||||||
if (!REGION_bOffsetRgn(pdc->dclevel.prgnClip,
|
if (!REGION_bOffsetRgn(pdc->dclevel.prgnClip,
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
#define IntLPtoDP(pdc, ppt, count) do { \
|
#define IntLPtoDP(pdc, ppt, count) do { \
|
||||||
DC_vUpdateWorldToDevice(pdc); \
|
DC_vUpdateWorldToDevice(pdc); \
|
||||||
DC_vXformWorldToDevice(pdc, count, (PPOINTL)(ppt), (PPOINTL)(ppt)); \
|
INTERNAL_LPTODP(pdc, ppt, count); \
|
||||||
} while (0)
|
} while (0)
|
||||||
#define CoordLPtoDP(pdc, ppt) \
|
#define CoordLPtoDP(pdc, ppt) \
|
||||||
DC_vXformWorldToDevice(pdc, 1, (PPOINTL)(ppt), (PPOINTL)(ppt));
|
DC_vXformWorldToDevice(pdc, 1, (PPOINTL)(ppt), (PPOINTL)(ppt));
|
||||||
|
|
|
@ -24,7 +24,7 @@ AddPenLinesBounds(PDC dc, int count, POINT *points)
|
||||||
/* Get BRUSH from current pen. */
|
/* Get BRUSH from current pen. */
|
||||||
pbrLine = dc->dclevel.pbrLine;
|
pbrLine = dc->dclevel.pbrLine;
|
||||||
ASSERT(pbrLine);
|
ASSERT(pbrLine);
|
||||||
|
|
||||||
lWidth = 0;
|
lWidth = 0;
|
||||||
|
|
||||||
// Setup bounds
|
// Setup bounds
|
||||||
|
@ -55,7 +55,7 @@ AddPenLinesBounds(PDC dc, int count, POINT *points)
|
||||||
rect.top = points->y - lWidth;
|
rect.top = points->y - lWidth;
|
||||||
rect.right = points->x + lWidth + 1;
|
rect.right = points->x + lWidth + 1;
|
||||||
rect.bottom = points->y + lWidth + 1;
|
rect.bottom = points->y + lWidth + 1;
|
||||||
RECTL_bUnionRect(&bounds, &bounds, &rect);
|
RECTL_bUnionRect(&bounds, &bounds, &rect);
|
||||||
points++;
|
points++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -444,7 +444,7 @@ NtGdiLineTo(HDC hDC,
|
||||||
rcLockRect.right = XEnd;
|
rcLockRect.right = XEnd;
|
||||||
rcLockRect.bottom = YEnd;
|
rcLockRect.bottom = YEnd;
|
||||||
|
|
||||||
IntLPtoDP(dc, &rcLockRect, 2);
|
IntLPtoDP(dc, (PPOINT)&rcLockRect, 2);
|
||||||
|
|
||||||
/* The DCOrg is in device coordinates */
|
/* The DCOrg is in device coordinates */
|
||||||
rcLockRect.left += dc->ptlDCOrig.x;
|
rcLockRect.left += dc->ptlDCOrig.x;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue