Path: utzoo!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!agate!shelby!polya!lma From: lma@polya.Stanford.EDU (Larry M. Augustin) Newsgroups: comp.windows.x Subject: Re: xfish question Message-ID: <11419@polya.Stanford.EDU> Date: 20 Aug 89 17:43:31 GMT References: <427@npiatl.UUCP> <1334@speedy.mcnc.org> Sender: Larry M. Augustin Reply-To: lma@Polya.Stanford.EDU (Larry M. Augustin) Distribution: na Organization: Stanford University Lines: 19 In article <1334@speedy.mcnc.org> jwb@mcnc.org.UUCP (Jack W. Buchanan Jr.) writes: :In article <427@npiatl.UUCP> dkelly@npiatl.UUCP (Dwight Kelly) writes: ::Can xfish run on a 4-bit (16 color) display? I am getting a X protocol ::... : :I have gotten this to work. It's easy. In the file xfish, about midway :through is the error message. Change the planes <8 to <4. This will stop :the error message. Then there are two calls to something like :XCreate_Window. In the parameter list there are two 8s. Change the first :one in each call to 4. This is the depth of the display. I've made this sort of change in a number of programs. It's very easy to do, but it's just as easy to query the display depth using XDefaultDepth, and it makes the application much more portable. Larry M. Augustin ERL 414 lma@sierra.stanford.edu Computer Systems Lab lma@dayton.stanford.edu Stanford University (415) 723-9285 Stanford, CA 94305