Add bezier path to appkit.j, fix slight code bug

This commit is contained in:
Ross Boucher committed 2009-05-16 16:18:26 -07:00
1 parent abb49664f9
commit cfed10bbac
2 files changed
+3 -2

No files matched your search

+1
View File
@@ -24,6 +24,7 @@
@import "CPAlert.j"
@import "CPAnimation.j"
@import "CPApplication.j"
@import "CPBezierPath.j"
@import "CPButton.j"
@import "CPButtonBar.j"
@import "CPCib.j"
+2 -2
View File
@@ -130,8 +130,8 @@ var DefaultLineWidth = 1.0;
CGContextBeginPath(ctx);
CGContextAddPath(ctx, _path);
CGContextSetLineWidth(ctx, [self lineWidth]);
CGContextStrokePath(ctx);
CGContextClosePath(ctx);
CGContextStrokePath(ctx);
}
- (void)fill
@@ -141,8 +141,8 @@ var DefaultLineWidth = 1.0;
CGContextBeginPath(ctx);
CGContextAddPath(ctx, _path);
CGContextSetLineWidth(ctx, [self lineWidth]);
CGContextFillPath(ctx);
CGContextClosePath(ctx);
CGContextFillPath(ctx);
}
- (float)lineWidth