Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!mcdphx!hrc!uucs1!gaf From: gaf@uucs1.UUCP (gaf) Newsgroups: comp.windows.x.motif Subject: Re: 16 colors with MWM Message-ID: <403@uucs1.UUCP> Date: 7 Feb 91 20:59:00 GMT References: <1991Feb6.135146.2576@news.larc.nasa.gov> Reply-To: gaf@uucs1.UUCP () Distribution: na Organization: UUCS inc., Phoenix Az Lines: 24 (J. Keith Alston) writes: > When I run this application under > the Motif window manager it only displays about 5 colors, > when I run under UWM I get all 16 colors. The Motif Window Manager (mwm) gobbles colors for its own use. Remember, that 3-D effect is achieved by using 3 colors (highlight, background, shadow) for the window frame with the focus and 3 colors (highlight, background, shadow) for windows without the focus. Then 2 more for active foreground & inactive foreground, for a total of 8. In the 1.0.* releases it gobbles the colormap entries even if it doesn't use them (e.g. if you use black for active & inactive foreground and shadow colors). If you have a 16 cell colormap with an application which needs to display 16 colors simultaneously, you can either use a server with a bigger colormap (we switched from VGA to a Paradise 8514/A) or have the app install its own colormap (which will make other apps' colors look wrong). -- Guy Finney It's that feeling of deja-vu UUCS inc. Phoenix, Az all over again. ncar!noao!asuvax!hrc!uucs1!gaf sun!sunburn!gtx!uucs1!gaf