Fix for broken cgcontext (stroke/fill ellipse)

This commit is contained in:
Ross Boucher
2009-05-16 16:51:05 -07:00
parent cfed10bbac
commit 83cdbec1d3
+4
View File
@@ -542,7 +542,9 @@ function CGContextAddEllipseInRect(aContext, aRect)
*/
function CGContextFillEllipseInRect(aContext, aRect)
{
CGContextBeginPath(aContext);
CGContextAddEllipseInRect(aContext, aRect);
CGContextClosePath(aContext);
CGContextFillPath(aContext);
}
@@ -554,7 +556,9 @@ function CGContextFillEllipseInRect(aContext, aRect)
*/
function CGContextStrokeEllipseInRect(aContext, aRect)
{
CGContextBeginPath(aContext);
CGContextAddEllipseInRect(aContext, aRect);
CGContextClosePath(aContext);
CGContextStrokePath(aContext);
}