mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 13:07:02 +00:00
Fix for broken cgcontext (stroke/fill ellipse)
This commit is contained in:
@@ -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