mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-10 02:40:59 +00:00
Fix for broken cgcontext (stroke/fill ellipse)
This commit is contained in:
1 parent
cfed10bbac
commit
83cdbec1d3
1 file changed
+4
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user