mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 00:20:49 +00:00
Autorelease the path returned by +bezierPath; indentation changes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12708 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8dd0c8ecb3
commit
3843d2a2b3
1 changed files with 8 additions and 8 deletions
|
@ -94,10 +94,10 @@ static float default_miter_limit = 10.0;
|
|||
|
||||
+ (id)bezierPath
|
||||
{
|
||||
return [[NSBezierPath_concrete_class alloc] init];
|
||||
return AUTORELEASE ([[NSBezierPath_concrete_class alloc] init]);
|
||||
}
|
||||
|
||||
+ (NSBezierPath *)bezierPathWithRect:(NSRect)aRect
|
||||
+ (NSBezierPath *)bezierPathWithRect: (NSRect)aRect
|
||||
{
|
||||
NSBezierPath *path;
|
||||
NSPoint p;
|
||||
|
@ -118,7 +118,7 @@ static float default_miter_limit = 10.0;
|
|||
return path;
|
||||
}
|
||||
|
||||
+ (NSBezierPath *)bezierPathWithOvalInRect:(NSRect)rect
|
||||
+ (NSBezierPath *)bezierPathWithOvalInRect: (NSRect)rect
|
||||
{
|
||||
NSBezierPath *path;
|
||||
NSPoint p, p1, p2;
|
||||
|
@ -159,22 +159,22 @@ static float default_miter_limit = 10.0;
|
|||
//
|
||||
// Immediate mode drawing of common paths
|
||||
//
|
||||
+ (void)fillRect:(NSRect)aRect
|
||||
+ (void)fillRect: (NSRect)aRect
|
||||
{
|
||||
PSrectfill(NSMinX(aRect), NSMinY(aRect), NSWidth(aRect), NSHeight(aRect));
|
||||
}
|
||||
|
||||
+ (void)strokeRect:(NSRect)aRect
|
||||
+ (void)strokeRect: (NSRect)aRect
|
||||
{
|
||||
PSrectstroke(NSMinX(aRect), NSMinY(aRect), NSWidth(aRect), NSHeight(aRect));
|
||||
}
|
||||
|
||||
+ (void)clipRect:(NSRect)aRect
|
||||
+ (void)clipRect: (NSRect)aRect
|
||||
{
|
||||
PSrectclip(NSMinX(aRect), NSMinY(aRect), NSWidth(aRect), NSHeight(aRect));
|
||||
}
|
||||
|
||||
+ (void)strokeLineFromPoint:(NSPoint)point1 toPoint:(NSPoint)point2
|
||||
+ (void)strokeLineFromPoint: (NSPoint)point1 toPoint: (NSPoint)point2
|
||||
{
|
||||
NSBezierPath *path = [NSBezierPath bezierPath];
|
||||
|
||||
|
@ -183,7 +183,7 @@ static float default_miter_limit = 10.0;
|
|||
[path stroke];
|
||||
}
|
||||
|
||||
+ (void)drawPackedGlyphs:(const char *)packedGlyphs atPoint:(NSPoint)aPoint
|
||||
+ (void)drawPackedGlyphs: (const char *)packedGlyphs atPoint: (NSPoint)aPoint
|
||||
{
|
||||
NSBezierPath *path = [NSBezierPath bezierPath];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue