[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#8402: Acknowledgement (24.0.50; Hex colors are not rendered correctl
From: |
Erik Andrejko |
Subject: |
bug#8402: Acknowledgement (24.0.50; Hex colors are not rendered correctly on OS X (Cocoa)) |
Date: |
Thu, 7 Apr 2011 21:36:18 -0700 |
I was able to fix this problem on my OS X 10.6 machine by modifying nsterm.m:
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;
}
After the change, the RGB values of the colors displayed matched the expected
RGB values according to the DigitalColor Meter utility.
bug#8402: bug 8402, Travis Vachon, 2011/04/14