git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3556 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1999-01-11 17:33:35 +00:00
parent b4c33e2403
commit ea065125ea
2 changed files with 9 additions and 2 deletions

View file

@ -1009,8 +1009,10 @@ static NSMutableDictionary *colorStrings = nil;
- (NSColor *)colorWithAlphaComponent:(float)alpha
{
[self setAlpha: alpha];
return self;
NSColor *aCopy = [self copy];
if (aCopy)
[aCopy setAlpha: alpha];
return aCopy;
}
- (NSColor*) highlightWithLevel: (float)level