home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / hp / 12655 < prev    next >
Encoding:
Internet Message Format  |  1992-11-08  |  2.4 KB

  1. From: hstroyan@hpfcso.FC.HP.COM (Howard Stroyan)
  2. Date: Sat, 7 Nov 1992 01:03:35 GMT
  3. Subject: Re: Changing Default Visual
  4. Message-ID: <7371457@hpfcso.FC.HP.COM>
  5. Organization: Hewlett-Packard, Fort Collins, CO, USA
  6. 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
  7. Newsgroups: comp.sys.hp
  8. References: <1992Nov6.093300.26192@iti.gov.sg>
  9. Lines: 45
  10.  
  11. In comp.sys.hp, kevin@iti.gov.sg (Kevin Patt (SE)) writes:
  12.  
  13. > Hi,
  14. >     I have gotten myself a HP720 with a CRX24Z card.  
  15. >     This is my problem.  I need my X Windows visual to have 256 color cells,
  16. >     but the default visual keeps returning a visual with 255 color cells.
  17. >     The display information is as follows:
  18. ...
  19. >   default number of colormap cells:    255
  20.  
  21. >   So what do I need to do to change the default visual from 0x21 to 0x20?
  22. >   I appreciate any help given.  Thanks in advance!
  23.  
  24. For the moment there is no ways to change the default visual on a CRX24.
  25. The default shows 255 colors because it is in the overlay planes and
  26. the 256th color is reserved for transparency.  This is needed to see
  27. through into the image planes.  We are looking at adding a way to 
  28. redirect the overlay visual in the future.
  29.  
  30. For now there are a couple of things that can be done.
  31.  
  32. 1st) consider using a non-default visual.  Of course this only is
  33.      possible if you have control of the source code or the code was
  34.      written to offer this functionality.
  35.  
  36. 2nd) There is a method available to override the 255 entries and have the
  37.      server report 256 available, BUT the 256th entry (index 255) will
  38.      remain hardwired to transparent.  This may or may not be useful,
  39.      depending on whether you really need to use that cell, or if the
  40.      application is just stubborn about thinking that 8 bits must mean
  41.      256 colors.  To activate this override export the environment 
  42.      variable "CRX24_COUNT_TRANSPARENT_IN_OVERLAY_VISUAL=TRUE" in the
  43.      shell where X is started.  For VUE 2.0 you can place the following
  44.      entry in the "/usr/lib/X11/vue/Vuelogin/Xconfig": 
  45.  
  46.      Vuelogin*environment: CRX24_COUNT_TRANSPARENT_IN_OVERLAY_VISUAL=TRUE
  47.  
  48.      For VUE 3.0 this file has moved to /usr/vue/config/Xconfig.
  49.  
  50. --
  51. Howard Stroyan                                         
  52. Hewlett-Packard                                        hstroyan@fc.hp.com
  53. User Interface Technology Division                     
  54.