mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-27 00:45:52 +00:00
CGContext should close path after fill or stroke
This commit is contained in:
1 parent
14d9aac98b
commit
32decc31db
2 files changed
+2
-2
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user