home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / windows / x / 15685 < prev    next >
Encoding:
Text File  |  1992-08-26  |  1.8 KB  |  60 lines

  1. Newsgroups: comp.windows.x
  2. Path: sparky!uunet!usc!sdd.hp.com!caen!destroyer!ncar!ico!auto-trol!miktay
  3. From: miktay@auto-trol.com (Mike Taylor)
  4. Subject: 24 bit cfb
  5. Message-ID: <1992Aug26.220346.18103@auto-trol.com>
  6. Originator: miktay@miktay
  7. Sender: news@auto-trol.com
  8. Nntp-Posting-Host: miktay.auto-trol.com
  9. Organization: Auto-trol Technology Corporation
  10. Date: Wed, 26 Aug 1992 22:03:46 GMT
  11. Lines: 47
  12.  
  13. Hello,
  14.  
  15. I'm trying to build a server on Sun that supports 24 bit deep pixmaps
  16. using X11R5 code from server/ddx/cfb. According to the porting guide,
  17. I need to change two files: cfbmskbits.h and cfbmskbits.c.
  18.  
  19. The file cfbmskbits.h contains the following defines:
  20.  
  21. #define PPW    4             /* pixels per word */
  22. #define PLST    3             /* last pixel in a word (should be PPW-1) */
  23. #define PIM    0x03          /* pixel index mask (index within a word) */
  24. #define PWSH    2             /* pixel-to-word shift */
  25. #define PSZ    8             /* pixel size (bits) */
  26. #define PMSK    0xFF          /* single-pixel mask */
  27.  
  28. These defines are clearly setup for 8 bit frame buffers only.
  29.  
  30. Also, the file cfbmskbits.c contains several arrays that might also need
  31. to be changed:
  32.  
  33. unsigned int cfbstarttab[] =
  34.     {
  35.     0x00000000,
  36.     0x00FFFFFF,
  37.     0x0000FFFF,
  38.     0x000000FF
  39.     };
  40.  
  41. unsigned int cfbendtab[] =
  42.     {
  43.     0x00000000,
  44.     0xFF000000,
  45.     0xFFFF0000,
  46.     0xFFFFFF00
  47.     };
  48.  
  49. I tried numerous combinations and am having zero luck. If any one has
  50. tackled 24 bit color frame buffers, or can suggest some values for
  51. the above code segments, I'd sure appreciate hearing from you.
  52.  
  53. Thanks!
  54.    -----,  , ------      +-------------------------- Wed Aug 26 4:00 pm
  55.      / /| /|   /         | To:    comp.windows.x
  56.     / / |/ |  /          | Re:    24 bit cfb
  57. \__/ /ichael /aylor      | Email: miktay@auto-trol.com  Phone: (303)252-2352
  58.  
  59.  
  60.