From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,96d3dde59d72c510 X-Google-Attributes: gidfee84,public X-Google-Thread: 1164f8,96d3dde59d72c510 X-Google-Attributes: gid1164f8,public From: mcbinc@world.std.com (Monty C. Brandenberg) Subject: Re: Not enough significant bits in color specification Date: 1997/12/04 Message-ID: #1/1 X-Deja-AN: 295078232 Sender: news@world.std.com (Mr Usenet Himself) References: <34861D91.4AE6F777@vehicle.elvis.me.berkeley.edu> Organization: MCB, Inc. Reply-To: mcbinc@world.std.com Newsgroups: comp.unix.osf.osf1,comp.sys.dec In <34861D91.4AE6F777@vehicle.elvis.me.berkeley.edu> Mark Wilcutts wrote: > Hi Folks, > > An application I'm trying to use (Xmath) spits out an error message > whenever I try to plot that it needs more than 64 colors. The machine > is a DEC Alphastation 255 running Digital Unix ver. 4.0. The display > adapter is a #9 Vision 330 with 4 MB memory, set at 256 colors > supposedly. > > When I run xdpyinfo i get as the last few lines: > > visual: > visual id: 0x21 > class: PseudoColor > depth: 8 planes > available colormap entries: 256 > red, green, blue masks: 0x0, 0x0, 0x0 > significant bits in color specification: 6 bits > > Why are there only 6 significant bits in the color spec and how do I > bump them up to 8? > 'Significant bits' refers to the number of useful bits in each color, out of a maximum of 16 supported by the protocol, not the number of entries in the colormap, which is 256 in your case. It appears that either Xmath isn't smart enough to get a private colormap or you must specify an option to get it to allocate a private colormap. If it won't do either, exit any color-consuming applications, such as netscape, xv, and even dtwm, start Xmath, then restart any important apps. Get rid of any color-eating background pixmap. -- Monty Brandenberg Software Consultant MCB, Inc. mcbinc@world.std.com 617.864.6907