mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-15 11:13:29 +00:00
Fixed up the FillStdPoly call, took out the transform.
This commit is contained in:
parent
b9ca802a72
commit
f71d3c9be6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user