home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.hp
- Path: sparky!uunet!haven.umd.edu!purdue!ames!agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!zaphod.mps.ohio-state.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!jvnc.net!nuscc!iti.gov.sg!kevin
- From: kevin@iti.gov.sg (Kevin Patt (SE))
- Subject: Changing Default Visual
- Message-ID: <1992Nov6.093300.26192@iti.gov.sg>
- Sender: news@iti.gov.sg (News Admin)
- Organization: National Computer Board, Singapore
- Date: Fri, 6 Nov 1992 09:33:00 GMT
- Lines: 105
-
- 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:
-
- ** xdpyinfo **
- name of display: endor:0.0
- version number: 11.0
- vendor string: Hewlett-Packard Company
- vendor release number: 5
- maximum request size: 16384 longwords (65536 bytes)
- motion buffer size: 100
- bitmap unit, bit order, padding: 32, MSBFirst, 32
- image byte order: MSBFirst
- number of supported pixmap formats: 9
- supported pixmap formats:
- depth 1, bits_per_pixel 1, scanline_pad 32
- depth 2, bits_per_pixel 8, scanline_pad 32
- depth 3, bits_per_pixel 8, scanline_pad 32
- depth 4, bits_per_pixel 8, scanline_pad 32
- depth 6, bits_per_pixel 8, scanline_pad 32
- depth 8, bits_per_pixel 8, scanline_pad 32
- depth 12, bits_per_pixel 16, scanline_pad 32
- depth 24, bits_per_pixel 32, scanline_pad 32
- depth 32, bits_per_pixel 32, scanline_pad 32
- keycode range: minimum 10, maximum 135
- number of extensions: 10
- HPExtension
- ShareExtension
- XTestExtension1
- SHAPE
- MIT-SHM
- Multi-Buffering
- XInputExtension
- MIT-SUNDRY-NONSTANDARD
- stellar-shmLink
- shmLink
- default screen number: 0
- number of screens: 1
-
- screen #0:
- dimensions: 1280x1024 pixels (357x285 millimeters)
- resolution: 91x91 dots per inch
- depths (4): 1, 8, 12, 24
- root window id: 0x26
- depth of root window: 8 planes
- number of colormaps: minimum 1, maximum 5
- default colormap: 0x24
- default number of colormap cells: 255
- preallocated pixels: black 0, white 1
- options: backing-store YES, save-unders YES
- current input event mask: 0x30003c
- ButtonPressMask ButtonReleaseMask EnterWindowMask
- LeaveWindowMask SubstructureRedirectMask FocusChangeMask
- number of visuals: 4
- default visual id: 0x21
- visual:
- visual id: 0x20
- class: PseudoColor
- depth: 8 planes
- size of colormap: 256 entries
- red, green, blue masks: 0x0, 0x0, 0x0
- significant bits in color specification: 8 bits
- visual:
- visual id: 0x21
- class: PseudoColor
- depth: 8 planes
- size of colormap: 255 entries
- red, green, blue masks: 0x0, 0x0, 0x0
- significant bits in color specification: 8 bits
- visual:
- visual id: 0x22
- class: DirectColor
- depth: 12 planes
- size of colormap: 256 entries
- red, green, blue masks: 0xf00, 0xf0, 0xf
- significant bits in color specification: 4 bits
- visual:
- visual id: 0x23
- class: DirectColor
- depth: 24 planes
- size of colormap: 256 entries
- red, green, blue masks: 0xff0000, 0xff00, 0xff
- significant bits in color specification: 8 bits
- number of mono multibuffer types: 4
- visual id, max buffers, depth: 0x20, 0, 8
- visual id, max buffers, depth: 0x21, 0, 8
- visual id, max buffers, depth: 0x22, 0, 12
- visual id, max buffers, depth: 0x23, 0, 24
- number of stereo multibuffer types: 0
-
- ** end of xdpyinfo display **
-
- So what do I need to do to change the default visual from 0x21 to 0x20?
- I appreciate any help given. Thanks in advance!
-
- - Kevin
- --
- Kevin Patt Information Technology Institute
- Associate Member of Technical Staff Singapore
- Email: (Internet) kevin@iti.gov.sg Tel: (065) 772-0471
- (BITNet) kevinpatt@itivax.bitnet Fax: (065) 779-5966
-