Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!rice!rice!sun-spots-request From: akt@sasig.saic.com (Amit Thakur) Newsgroups: comp.sys.sun Subject: How do I reverse pixels 0 and 1 of read-only default colormap? Keywords: Windows Message-ID: <1990Oct7.235457.9443@rice.edu> Date: 3 Oct 90 22:11:03 GMT Sender: sun-spots-request@rice.edu Organization: Sun-Spots Lines: 16 Approved: Sun-Spots@rice.edu Originator: spots@walhalla.rice.edu X-Sun-Spots-Digest: Volume 9, Issue 317, message 11 I am using Sun's OpenWindows Version 2.0 under SunOS 4.0.3, and need to reverse the default setting (in the default colormap) of pixel 0 to white (#ffffff) and pixel 1 to black (#000000). I have looked through the PostScript code in $OPENWINHOME/etc/NeWS used by xnews to initialize the default colormap, but am unable to find the place where this is done. I tried to write a program to change the default colormap, but the call to XFreeColors bombs out because the colormap is read-only. Any help would be appreciated. Please reply to me at akt@sasig.saic.com, as I am not (yet) on this mailing list. Thanks in advance, -- akt@sasig.saic.com