Consistency: calibrated color space -> sRGB color space.
This commit is contained in:
parent
7b04d974ac
commit
f5aa8cd32d
|
@ -87,7 +87,7 @@ struct uiColorButton {
|
||||||
CGFloat cr, cg, cb, ca;
|
CGFloat cr, cg, cb, ca;
|
||||||
|
|
||||||
// the given color may not be an RGBA color, which will cause the -getRed:green:blue:alpha: call to throw an exception
|
// the given color may not be an RGBA color, which will cause the -getRed:green:blue:alpha: call to throw an exception
|
||||||
rgba = [[self color] colorUsingColorSpaceName:NSCalibratedRGBColorSpace];
|
rgba = [[self color] colorUsingColorSpace:[NSColorSpace sRGBColorSpace]];
|
||||||
[rgba getRed:&cr green:&cg blue:&cb alpha:&ca];
|
[rgba getRed:&cr green:&cg blue:&cb alpha:&ca];
|
||||||
*r = cr;
|
*r = cr;
|
||||||
*g = cg;
|
*g = cg;
|
||||||
|
|
Loading…
Reference in New Issue