https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3bad3c49e1f378a829d30…
commit 3bad3c49e1f378a829d306783a8172a1089a0a9a
Author: Jérôme Gardou <jerome.gardou(a)reactos.org>
AuthorDate: Wed Mar 17 16:21:58 2021 +0100
Commit: Jérôme Gardou <zefklop(a)users.noreply.github.com>
CommitDate: Wed Mar 31 18:35:31 2021 +0200
[WIN32K] Use INTERNAL_LPTODP in IntLPtoDP
Instead of initializing a XFORMOBJ and whatnot
---
win32ss/gdi/ntgdi/cliprgn.c | 2 +-
win32ss/gdi/ntgdi/coord.h | 2 +-
win32ss/gdi/ntgdi/line.c | 6 +++---
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/win32ss/gdi/ntgdi/cliprgn.c b/win32ss/gdi/ntgdi/cliprgn.c
index 0964f5559da..3084416a331 100644
--- a/win32ss/gdi/ntgdi/cliprgn.c
+++ b/win32ss/gdi/ntgdi/cliprgn.c
@@ -560,7 +560,7 @@ NtGdiOffsetClipRgn(
apt[0].y = 0;
apt[1].x = xOffset;
apt[1].y = yOffset;
- IntLPtoDP(pdc, &apt, 2);
+ IntLPtoDP(pdc, apt, 2);
/* Offset the clip region */
if (!REGION_bOffsetRgn(pdc->dclevel.prgnClip,
diff --git a/win32ss/gdi/ntgdi/coord.h b/win32ss/gdi/ntgdi/coord.h
index 6dcf58fc982..a62abadabbe 100644
--- a/win32ss/gdi/ntgdi/coord.h
+++ b/win32ss/gdi/ntgdi/coord.h
@@ -6,7 +6,7 @@
#define IntLPtoDP(pdc, ppt, count) do { \
DC_vUpdateWorldToDevice(pdc); \
- DC_vXformWorldToDevice(pdc, count, (PPOINTL)(ppt), (PPOINTL)(ppt)); \
+ INTERNAL_LPTODP(pdc, ppt, count); \
} while (0)
#define CoordLPtoDP(pdc, ppt) \
DC_vXformWorldToDevice(pdc, 1, (PPOINTL)(ppt), (PPOINTL)(ppt));
diff --git a/win32ss/gdi/ntgdi/line.c b/win32ss/gdi/ntgdi/line.c
index c922995925d..aeebebc58a1 100644
--- a/win32ss/gdi/ntgdi/line.c
+++ b/win32ss/gdi/ntgdi/line.c
@@ -24,7 +24,7 @@ AddPenLinesBounds(PDC dc, int count, POINT *points)
/* Get BRUSH from current pen. */
pbrLine = dc->dclevel.pbrLine;
ASSERT(pbrLine);
-
+
lWidth = 0;
// Setup bounds
@@ -55,7 +55,7 @@ AddPenLinesBounds(PDC dc, int count, POINT *points)
rect.top = points->y - lWidth;
rect.right = points->x + lWidth + 1;
rect.bottom = points->y + lWidth + 1;
- RECTL_bUnionRect(&bounds, &bounds, &rect);
+ RECTL_bUnionRect(&bounds, &bounds, &rect);
points++;
}
@@ -444,7 +444,7 @@ NtGdiLineTo(HDC hDC,
rcLockRect.right = XEnd;
rcLockRect.bottom = YEnd;
- IntLPtoDP(dc, &rcLockRect, 2);
+ IntLPtoDP(dc, (PPOINT)&rcLockRect, 2);
/* The DCOrg is in device coordinates */
rcLockRect.left += dc->ptlDCOrig.x;