mirror of
https://github.com/reactos/reactos.git
synced 2025-07-23 01:13:42 +00:00
[MSPAINT] mouse.cpp: Erase type warnings of SIZE_T vs. INT
CORE-19094
This commit is contained in:
parent
b8598e095d
commit
fd38a6f788
1 changed files with 5 additions and 5 deletions
|
@ -53,7 +53,7 @@ BOOL nearlyEqualPoints(INT x0, INT y0, INT x1, INT y1)
|
||||||
return (abs(x1 - x0) <= cxThreshold) && (abs(y1 - y0) <= cyThreshold);
|
return (abs(x1 - x0) <= cxThreshold) && (abs(y1 - y0) <= cyThreshold);
|
||||||
}
|
}
|
||||||
|
|
||||||
void getBoundaryOfPtStack(RECT& rcBoundary, INT cPoints, const POINT *pPoints)
|
void getBoundaryOfPtStack(RECT& rcBoundary, SIZE_T cPoints, const POINT *pPoints)
|
||||||
{
|
{
|
||||||
POINT ptMin = { MAXLONG, MAXLONG }, ptMax = { (LONG)MINLONG, (LONG)MINLONG };
|
POINT ptMin = { MAXLONG, MAXLONG }, ptMax = { (LONG)MINLONG, (LONG)MINLONG };
|
||||||
while (cPoints-- > 0)
|
while (cPoints-- > 0)
|
||||||
|
@ -94,7 +94,7 @@ void BuildMaskFromPtStack()
|
||||||
::FillRect(hdcMem, &rc, (HBRUSH)::GetStockObject(BLACK_BRUSH));
|
::FillRect(hdcMem, &rc, (HBRUSH)::GetStockObject(BLACK_BRUSH));
|
||||||
HGDIOBJ hPenOld = ::SelectObject(hdcMem, GetStockObject(NULL_PEN));
|
HGDIOBJ hPenOld = ::SelectObject(hdcMem, GetStockObject(NULL_PEN));
|
||||||
HGDIOBJ hbrOld = ::SelectObject(hdcMem, GetStockObject(WHITE_BRUSH));
|
HGDIOBJ hbrOld = ::SelectObject(hdcMem, GetStockObject(WHITE_BRUSH));
|
||||||
::Polygon(hdcMem, s_pointStack, s_pointSP);
|
::Polygon(hdcMem, s_pointStack, (INT)s_pointSP);
|
||||||
::SelectObject(hdcMem, hbrOld);
|
::SelectObject(hdcMem, hbrOld);
|
||||||
::SelectObject(hdcMem, hPenOld);
|
::SelectObject(hdcMem, hPenOld);
|
||||||
::SelectObject(hdcMem, hbmOld);
|
::SelectObject(hdcMem, hbmOld);
|
||||||
|
@ -560,7 +560,7 @@ struct FreeSelTool : SelectionBaseTool
|
||||||
if (!selectionModel.m_bShow && m_bDrawing)
|
if (!selectionModel.m_bShow && m_bDrawing)
|
||||||
{
|
{
|
||||||
/* Draw the freehand selection inverted/xored */
|
/* Draw the freehand selection inverted/xored */
|
||||||
Poly(hdc, s_pointStack, s_pointSP, 0, 0, 2, 0, FALSE, TRUE);
|
Poly(hdc, s_pointStack, (INT)s_pointSP, 0, 0, 2, 0, FALSE, TRUE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -1008,9 +1008,9 @@ struct ShapeTool : ToolBase
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (m_bLeftButton)
|
if (m_bLeftButton)
|
||||||
Poly(hdc, s_pointStack, s_pointSP, m_fg, m_bg, toolsModel.GetLineWidth(), toolsModel.GetShapeStyle(), m_bClosed, FALSE);
|
Poly(hdc, s_pointStack, (INT)s_pointSP, m_fg, m_bg, toolsModel.GetLineWidth(), toolsModel.GetShapeStyle(), m_bClosed, FALSE);
|
||||||
else
|
else
|
||||||
Poly(hdc, s_pointStack, s_pointSP, m_bg, m_fg, toolsModel.GetLineWidth(), toolsModel.GetShapeStyle(), m_bClosed, FALSE);
|
Poly(hdc, s_pointStack, (INT)s_pointSP, m_bg, m_fg, toolsModel.GetLineWidth(), toolsModel.GetShapeStyle(), m_bClosed, FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnButtonDown(BOOL bLeftButton, LONG x, LONG y, BOOL bDoubleClick) override
|
void OnButtonDown(BOOL bLeftButton, LONG x, LONG y, BOOL bDoubleClick) override
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue