mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 05:30:47 +00:00
Bugfix by Benhur-de-Oliveira.Stein@imag.fr
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3556 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
2d23c8e038
commit
298e1e2f75
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Mon Jan 11 17:00:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||||
|
|
||||||
|
* Source/NSColor.m: ([-colorWithAlphaComponent:]) bugfix from
|
||||||
|
Benhur-de-Oliveira.Stein@imag.fr
|
||||||
|
|
||||||
Sat Jan 9 21:10:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
Sat Jan 9 21:10:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||||
|
|
||||||
* Source/NSWindow.m: ([-setcontentView:]) Corrected to resize the
|
* Source/NSWindow.m: ([-setcontentView:]) Corrected to resize the
|
||||||
|
|
|
@ -1009,8 +1009,10 @@ static NSMutableDictionary *colorStrings = nil;
|
||||||
|
|
||||||
- (NSColor *)colorWithAlphaComponent:(float)alpha
|
- (NSColor *)colorWithAlphaComponent:(float)alpha
|
||||||
{
|
{
|
||||||
[self setAlpha: alpha];
|
NSColor *aCopy = [self copy];
|
||||||
return self;
|
if (aCopy)
|
||||||
|
[aCopy setAlpha: alpha];
|
||||||
|
return aCopy;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSColor*) highlightWithLevel: (float)level
|
- (NSColor*) highlightWithLevel: (float)level
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue