Fixed up the FillStdPoly call, took out the transform.

This commit is contained in:
dcone%netscape.com 2000-05-04 05:16:35 +00:00
parent b9ca802a72
commit f71d3c9be6

View File

@ -1304,9 +1304,7 @@ NS_IMETHODIMP nsRenderingContextWin :: FillPolygon(const nsPoint aPoints[], PRIn
NS_IMETHODIMP nsRenderingContextWin :: FillStdPolygon(const nsPoint aPoints[], PRInt32 aNumPoints)
{
// First transform nsPoint's into POINT's; perform coordinate space
// transformation at the same time
// First transform nsPoint's into POINT's;
POINT pts[20];
POINT* pp0 = pts;
@ -1316,11 +1314,9 @@ NS_IMETHODIMP nsRenderingContextWin :: FillStdPolygon(const nsPoint aPoints[], P
POINT* pp = pp0;
const nsPoint* np = &aPoints[0];
for (PRInt32 i = 0; i < aNumPoints; i++, pp++, np++)
{
for (PRInt32 i = 0; i < aNumPoints; i++, pp++, np++){
pp->x = np->x;
pp->y = np->y;
mTranMatrix->TransformCoord((int*)&pp->x,(int*)&pp->y);
}
// Fill the polygon