Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!spool.mu.edu!think.com!mintaka!bloom-beacon!dont-send-mail-to-path-lines From: keith@expo.lcs.mit.EDU (Keith Packard) Newsgroups: comp.windows.x Subject: Re: white and black colors in the X server Message-ID: <9105311752.AA00413@xenon.lcs.mit.edu> Date: 31 May 91 17:52:57 GMT References: <"31-May-91.12:33:33.EDT".*.Nagesh_Pabbisetty.Henr801C@Xerox.com> Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 11 > The fact that whitePixel is 0 and blackPixel is 1 has been built into the code > at several places in the implementation on the X11R4 server. This is simply untrue. The DEC QVSS - the first machine to ever run X11 is a monochrome display with blackPixel 0 and whitePixel 1. The cfb code does (by default) allocate white pixel before black pixel, which generally causes white = 0 and black = 1; a trivial modification which assigns the appropriate values before calling cfbCreateDefColormap makes it possible to use any pixel values you'd like.