Kaydet (Commit) 449aa3c6 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Just spell out the NULL instead of having a const variable for it

Change-Id: Iee45a5bb80a1d3149aa231f2848910eee415a64b
üst a13362ef
...@@ -56,7 +56,6 @@ static void AddPolygonToPath( CGMutablePathRef xPath, ...@@ -56,7 +56,6 @@ static void AddPolygonToPath( CGMutablePathRef xPath,
return; return;
} }
(void)bPixelSnap; // TODO (void)bPixelSnap; // TODO
const CGAffineTransform* pTransform = NULL;
const bool bHasCurves = rPolygon.areControlPointsUsed(); const bool bHasCurves = rPolygon.areControlPointsUsed();
for( int nPointIdx = 0, nPrevIdx = 0;; nPrevIdx = nPointIdx++ ) for( int nPointIdx = 0, nPrevIdx = 0;; nPrevIdx = nPointIdx++ )
...@@ -91,7 +90,7 @@ static void AddPolygonToPath( CGMutablePathRef xPath, ...@@ -91,7 +90,7 @@ static void AddPolygonToPath( CGMutablePathRef xPath,
if( !nPointIdx ) if( !nPointIdx )
{ {
// first point => just move there // first point => just move there
CGPathMoveToPoint( xPath, pTransform, aPoint.getX(), aPoint.getY() ); CGPathMoveToPoint( xPath, NULL, aPoint.getX(), aPoint.getY() );
continue; continue;
} }
...@@ -104,7 +103,7 @@ static void AddPolygonToPath( CGMutablePathRef xPath, ...@@ -104,7 +103,7 @@ static void AddPolygonToPath( CGMutablePathRef xPath,
if( !bPendingCurve ) // line segment if( !bPendingCurve ) // line segment
{ {
CGPathAddLineToPoint( xPath, pTransform, aPoint.getX(), aPoint.getY() ); CGPathAddLineToPoint( xPath, NULL, aPoint.getX(), aPoint.getY() );
} }
else // cubic bezier segment else // cubic bezier segment
{ {
...@@ -115,7 +114,7 @@ static void AddPolygonToPath( CGMutablePathRef xPath, ...@@ -115,7 +114,7 @@ static void AddPolygonToPath( CGMutablePathRef xPath,
aCP1 += aHalfPointOfs; aCP1 += aHalfPointOfs;
aCP2 += aHalfPointOfs; aCP2 += aHalfPointOfs;
} }
CGPathAddCurveToPoint( xPath, pTransform, aCP1.getX(), aCP1.getY(), CGPathAddCurveToPoint( xPath, NULL, aCP1.getX(), aCP1.getY(),
aCP2.getX(), aCP2.getY(), aPoint.getX(), aPoint.getY() ); aCP2.getX(), aCP2.getY(), aPoint.getX(), aPoint.getY() );
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment