[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: colour triples under OSX
From: |
Andrew Choi |
Subject: |
Re: colour triples under OSX |
Date: |
Mon, 06 Jan 2003 14:37:34 -0700 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
Toby Sargeant <address@hidden> writes:
> Under OSX, "#203040" produces an onscreen colour of
> R:0x40, G:0x30, B:0x20.
The following patch should fix this. I'll check it in when I can.
Index: src/macfns.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/macfns.c,v
retrieving revision 1.17
diff -u -r1.17 macfns.c
--- src/macfns.c 23 Oct 2002 16:54:51 -0000 1.17
+++ src/macfns.c 6 Jan 2003 21:35:27 -0000
@@ -1837,7 +1837,7 @@
{
unsigned long colorval;
int i, pos;
- pos = 0;
+ pos = 16;
size /= 3;
colorval = 0;
@@ -1873,7 +1873,7 @@
break;
}
colorval |= (value << pos);
- pos += 0x8;
+ pos -= 8;
if (i == 2)
{
UNBLOCK_INPUT;