CGContext should close path after fill or stroke

This commit is contained in:
Klaas Pieter Annema committed 2010-11-29 12:47:38 +01:00
1 parent 14d9aac98b
commit 32decc31db
2 files changed
+2 -2

No files matched your search

+2
View File
@@ -535,6 +535,7 @@ function CGContextEOFillPath(aContext)
function CGContextFillPath(aContext)
{
CGContextDrawPath(aContext, kCGPathFill);
CGContextClosePath(aContext);
}
var KAPPA = 4.0 * ((SQRT2 - 1.0) / 3.0);
@@ -588,6 +589,7 @@ function CGContextStrokeEllipseInRect(aContext, aRect)
function CGContextStrokePath(aContext)
{
CGContextDrawPath(aContext, kCGPathStroke);
CGContextClosePath(aContext);
}
/*!
-2
View File
@@ -255,8 +255,6 @@ function CGContextDrawPath(aContext, aMode)
vml.push("</cg_vml_:shape>");
aContext.path = NULL;
if (aContext.buffer != nil)
aContext.buffer += vml.join("");
else