home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / windows / x / 19326 < prev    next >
Encoding:
Text File  |  1992-11-18  |  1.3 KB  |  35 lines

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