Created
November 13, 2011 10:04
-
-
Save jimeh/1361934 to your computer and use it in GitHub Desktop.
sRGB color patch for Emacs 24 on Mac OS X. More info: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8402
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/nsterm.m b/src/nsterm.m | |
index af1f21a..696dbdc 100644 | |
--- a/src/nsterm.m | |
+++ b/src/nsterm.m | |
@@ -1389,7 +1389,7 @@ ns_get_color (const char *name, NSColor **col) | |
if (r >= 0.0) | |
{ | |
- *col = [NSColor colorWithCalibratedRed: r green: g blue: b alpha: 1.0]; | |
+ *col = [NSColor colorWithDeviceRed: r green: g blue: b alpha: 1.0]; | |
UNBLOCK_INPUT; | |
return 0; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Oh, note also that there are suggestions that "DeviceRed" colors are essentially treated as sRGB colors in Mountain Lion...