Correct alpha_component passing.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28956 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2009-11-04 21:49:48 +00:00
parent 16312cec5e
commit 8802a916e6
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2009-11-04 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSColor.m (GSRGBColor -getComponents:): Correct
alpha_component passing.
2009-11-03 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSColor.m (-colorUsingColorSpace): Support more color spaces.

View file

@ -2603,12 +2603,12 @@ static NSRecursiveLock *namedColorLock = nil;
components[0] = _red_component;
components[1] = _green_component;
components[2] = _blue_component;
components[4] = _alpha_component;
components[3] = _alpha_component;
}
- (int) numberOfComponents
{
return 4;
return 4;
}
- (void) getHue: (float*)hue