Path: utzoo!attcan!uunet!husc6!bloom-beacon!EXPO.LCS.MIT.EDU!keith From: keith@EXPO.LCS.MIT.EDU (Keith Packard) Newsgroups: comp.windows.x Subject: Re: xwanderer Message-ID: <8811150542.AA26721@EXPO.LCS.MIT.EDU> Date: 15 Nov 88 05:42:15 GMT References: <722@sunspot.cme-durer.ARPA> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 30 xwanderer uses colors 0 and 1 for foreground/background as it simply creates GC's with XCreateGC without specifying the appropriate colors. On many displays, colors 0 and 1 are writable, and frequently not white and black. On my display, they ended up using my normal foreground/background colors (sheer coincidence) and I thought xwanderer was using the resource manager... This is a trivial fix, simply add code like: build_pixmaps () { ... + XGCValues gcv; ... + gcv.foreground = WhitePixel (dpy, DefaultScreen (dpy)); + gcv.background = BlackPixel (dpy, DefaultScreen (dpy)); /* build all of the GC's here too! */ ! foogc = XCreateGC (dpy, win, GCForeground|GCBackground, &gcv) Actually, I've made these and other changes to xwanderer, like converting the icons into a font, which speeds up the display of the map quite a bit, while making startup time also faster. Sort of a win-win situation. It would also enable one to create different font sets for different display resolutions, and do lots of fun stuff with that. If there is any interest, I can make the diffs availible for anonymous ftp...