From f5aa8cd32d558a247b2fa7a1de3dd52897bd6a16 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 21 May 2016 11:34:30 -0400 Subject: [PATCH] Consistency: calibrated color space -> sRGB color space. --- darwin/colorbutton.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/darwin/colorbutton.m b/darwin/colorbutton.m index 0766a9d2..7483fda1 100644 --- a/darwin/colorbutton.m +++ b/darwin/colorbutton.m @@ -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;