home *** CD-ROM | disk | FTP | other *** search
- From: hstroyan@hpfcso.FC.HP.COM (Howard Stroyan)
- Date: Sat, 7 Nov 1992 01:03:35 GMT
- Subject: Re: Changing Default Visual
- Message-ID: <7371457@hpfcso.FC.HP.COM>
- Organization: Hewlett-Packard, Fort Collins, CO, USA
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!scd.hp.com!hpscdm!cupnews0.cup.hp.com!hppad.waterloo.hp.com!hppad!hpfcso!hstroyan
- Newsgroups: comp.sys.hp
- References: <1992Nov6.093300.26192@iti.gov.sg>
- Lines: 45
-
- In comp.sys.hp, kevin@iti.gov.sg (Kevin Patt (SE)) writes:
-
- > Hi,
- >
- > I have gotten myself a HP720 with a CRX24Z card.
- >
- > This is my problem. I need my X Windows visual to have 256 color cells,
- > but the default visual keeps returning a visual with 255 color cells.
- > The display information is as follows:
- ...
- > default number of colormap cells: 255
-
- > So what do I need to do to change the default visual from 0x21 to 0x20?
- > I appreciate any help given. Thanks in advance!
-
- For the moment there is no ways to change the default visual on a CRX24.
- The default shows 255 colors because it is in the overlay planes and
- the 256th color is reserved for transparency. This is needed to see
- through into the image planes. We are looking at adding a way to
- redirect the overlay visual in the future.
-
- For now there are a couple of things that can be done.
-
- 1st) consider using a non-default visual. Of course this only is
- possible if you have control of the source code or the code was
- written to offer this functionality.
-
- 2nd) There is a method available to override the 255 entries and have the
- server report 256 available, BUT the 256th entry (index 255) will
- remain hardwired to transparent. This may or may not be useful,
- depending on whether you really need to use that cell, or if the
- application is just stubborn about thinking that 8 bits must mean
- 256 colors. To activate this override export the environment
- variable "CRX24_COUNT_TRANSPARENT_IN_OVERLAY_VISUAL=TRUE" in the
- shell where X is started. For VUE 2.0 you can place the following
- entry in the "/usr/lib/X11/vue/Vuelogin/Xconfig":
-
- Vuelogin*environment: CRX24_COUNT_TRANSPARENT_IN_OVERLAY_VISUAL=TRUE
-
- For VUE 3.0 this file has moved to /usr/vue/config/Xconfig.
-
- --
- Howard Stroyan
- Hewlett-Packard hstroyan@fc.hp.com
- User Interface Technology Division
-