cattell@oswego.Oswego.EDU (Mike Cattell) (11/14/88)
Could someone who has the source for Xwanderer please email it to me, I seemed to have missed it. Much Appreciated EMAIL TO -> cattell@rocky.oswego.edu
anderson@cme-durer.ARPA (William E. Anderson) (11/14/88)
I recently installed X windows, version 11, release 3 on my
color Sun 3/160 running SunOs 3.5. I am totally new to X windows
as I am sure will be apparent. I was able to get xwanderer
running after changing some font names in icon.c. However, the
colors (green foreground on a yellowish-green background) make
it nearly impossible to see what is going on.
I added code in m.c to set a default color map but to no avail:
xswa.colormap = DefaultColormap(dpy,scr);
XChangeWindowAttributes(dpy,win,(CWColormap), &xswa);
Where are these colors coming from? Is there some way of setting
then before xwanderer is invoked? Any help would be appreciated.
NAME: William E. Anderson TELE: (301) 975-2423
USMAIL: National Bureau of Standards ARPA: anderson@ceee.nbs.gov
Rm. B-344, Bldg. 220 UUCP: uunet!cme-durer!anderson
Gaithersburg, MD 20899
--
NAME: William E. Anderson TELE: (301) 975-2423
USMAIL: National Bureau of Standards ARPA: anderson@ceee.nbs.gov
Rm. B-344, Bldg. 220 UUCP: uunet!cme-durer!anderson
Gaithersburg, MD 20899nobody@tekecs.TEK.COM (-for inetd server command) (11/16/88)
In article <722@sunspot.cme-durer.ARPA> anderson@cme-durer.ARPA (William E. Anderson) writes: >I recently installed X windows, version 11, release 3 on my >color Sun 3/160 running SunOs 3.5. I am totally new to X windows >as I am sure will be apparent. I was able to get xwanderer >running after changing some font names in icon.c. However, the >colors (green foreground on a yellowish-green background) make >it nearly impossible to see what is going on. > >I added code in m.c to set a default color map but to no avail: > > xswa.colormap = DefaultColormap(dpy,scr); > XChangeWindowAttributes(dpy,win,(CWColormap), &xswa); > >Where are these colors coming from? Is there some way of setting >then before xwanderer is invoked? Any help would be appreciated. I encountered the same problem. As best I can remember (I didn't save the original files), file icon.c used WhitePixel and BlackPixel, but then wrote to the screen using GXinvert mode. I have a four-plane color machine where BlackPixel = 0 and WhitePixel = 1. When these values are inverted, I get 15 and 14, a not-very-usable color combination. I think the author was trying to use this mode to switch black to white and white to black. The proper way to do this (I believe) is to create two GC's, one with white/black and the other with black/white (for fg/bg). Use the inverted GC (with GXcopy mode) where you might normally think of using GXinvert mode. This will produce the proper effect on both black-and-white and color displays. This is what I did to fix xwanderer. -- antoniof@af.GWD.TEK.COM -- antoniof@af x2433