Minor stylistic changes.

Reviewed by me.
This commit is contained in:
Francisco Ryan Tolmasky I committed 2009-06-09 17:54:18 -07:00
1 parent 90fe0d64f5
commit 7e88b1abfd
2 files changed
+9 -9

No files matched your search

+8 -8
View File
@@ -52,12 +52,12 @@ var DefaultLineWidth = 1.0;
+ (CPBezierPath)bezierPath
{
return [[[self class] alloc] init];
return [[self alloc] init];
}
+ (CPBezierPath)bezierPathWithOvalInRect:(CGRect)rect
{
var path = [[self class] bezierPath];
var path = [self bezierPath];
[path appendBezierPathWithOvalInRect:rect];
@@ -66,7 +66,7 @@ var DefaultLineWidth = 1.0;
+ (CPBezierPath)bezierPathWithRect:(CGRect)rect
{
var path = [[self class] bezierPath];
var path = [self bezierPath];
[path appendBezierPathWithRect:rect];
@@ -83,19 +83,19 @@ var DefaultLineWidth = 1.0;
DefaultLineWidth = width;
}
+ (void)fillRect:(CGRect)rect
+ (void)fillRect:(CGRect)aRect
{
[[[self class] bezierPathWithRect:rect] fill];
[[self bezierPathWithRect:aRect] fill];
}
+ (void)strokeRect:(CGRect)rect
+ (void)strokeRect:(CGRect)aRect
{
[[[self class] bezierPathWithRect:rect] stroke];
[[self bezierPathWithRect:aRect] stroke];
}
+ (void)strokeLineFromPoint:(CGPoint)point1 toPoint:(CGPoint)point2
{
var path = [[self class] bezierPath];
var path = [self bezierPath];
[path moveToPoint:point1];
[path lineToPoint:point2];
+1 -1
View File
@@ -71,7 +71,7 @@ var NSBorderlessWindowMask = 0x00,
(_windowStyleMask & NSResizableWindowMask ? CPResizableWindowMask : 0) |
(_windowStyleMask & NSTexturedBackgroundWindowMask ? NSTexturedBackgroundWindowMask : 0) |
(_windowStyleMask & NSHUDBackgroundWindowMask ? CPHUDBackgroundWindowMask : 0);
_windowIsFullBridge = [aCoder decodeObjectForKey:"NSFrameAutosaveName"] === "CPBorderlessBridgeWindowMask";
/*if (![_windowClass isEqualToString:@"NSPanel"])