Consistency: calibrated color space -> sRGB color space.

This commit is contained in:
Pietro Gagliardi 2016-05-21 11:34:30 -04:00
parent 7b04d974ac
commit f5aa8cd32d
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ struct uiColorButton {
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
rgba = [[self color] colorUsingColorSpaceName:NSCalibratedRGBColorSpace];
rgba = [[self color] colorUsingColorSpace:[NSColorSpace sRGBColorSpace]];
[rgba getRed:&cr green:&cg blue:&cb alpha:&ca];
*r = cr;
*g = cg;