home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x
- Path: sparky!uunet!utcsri!newsflash.concordia.ca!sifon!thunder.mcrcim.mcgill.edu!mouse
- From: mouse@thunder.mcrcim.mcgill.edu (der Mouse)
- Subject: Re: number of cells vs. the depth
- Message-ID: <1992Nov19.075323.27588@thunder.mcrcim.mcgill.edu>
- Organization: McGill Research Centre for Intelligent Machines
- References: <17NOV199215075018@mary.fordham.edu>
- Distribution: usa
- Date: Thu, 19 Nov 92 07:53:23 GMT
- Lines: 24
-
- In article <17NOV199215075018@mary.fordham.edu>, sbhatia@mary.fordham.edu (SABU) writes:
-
- > if i get a value of 8 when i call XDefaultDepth()
- > will i get a value of 256 when i call XDisplayCells()
-
- Not necessarily. It is not guaranteed, and I have read of servers that
- let clients at only 254 of the hardware's 256 cells, reserving two of
- them to let it guarantee that the pointer cursor will always be
- displayed in the colors it's supposed to be displayed in.
-
- > in general will it always hold that
- > the number of DisplayCells == 2 ** depth.
-
- > I am assuming that the visual type is PsuedoColor.
-
- (I assume that should be "PseudoColor".) No, it does not always hold.
- The above is an example; another one might be an overlay visual with a
- depth of 2 but only three colormap cells, with the fourth value
- reserved for "transparent".
-
- der Mouse
-
- mouse@larry.mcrcim.mcgill.edu
-