Skip to content

Instantly share code, notes, and snippets.

@crmne
Created May 30, 2011 15:29
Show Gist options
  • Save crmne/999057 to your computer and use it in GitHub Desktop.
Save crmne/999057 to your computer and use it in GitHub Desktop.
Fixes Emacs colors on Mac OS X
diff --git a/src/nsterm.m b/src/nsterm.m
index 025486d..bb362a6 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -1414,7 +1414,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