home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x
- Path: sparky!uunet!usc!sdd.hp.com!caen!destroyer!ncar!ico!auto-trol!miktay
- From: miktay@auto-trol.com (Mike Taylor)
- Subject: 24 bit cfb
- Message-ID: <1992Aug26.220346.18103@auto-trol.com>
- Originator: miktay@miktay
- Sender: news@auto-trol.com
- Nntp-Posting-Host: miktay.auto-trol.com
- Organization: Auto-trol Technology Corporation
- Date: Wed, 26 Aug 1992 22:03:46 GMT
- Lines: 47
-
- Hello,
-
- I'm trying to build a server on Sun that supports 24 bit deep pixmaps
- using X11R5 code from server/ddx/cfb. According to the porting guide,
- I need to change two files: cfbmskbits.h and cfbmskbits.c.
-
- The file cfbmskbits.h contains the following defines:
-
- #define PPW 4 /* pixels per word */
- #define PLST 3 /* last pixel in a word (should be PPW-1) */
- #define PIM 0x03 /* pixel index mask (index within a word) */
- #define PWSH 2 /* pixel-to-word shift */
- #define PSZ 8 /* pixel size (bits) */
- #define PMSK 0xFF /* single-pixel mask */
-
- These defines are clearly setup for 8 bit frame buffers only.
-
- Also, the file cfbmskbits.c contains several arrays that might also need
- to be changed:
-
- unsigned int cfbstarttab[] =
- {
- 0x00000000,
- 0x00FFFFFF,
- 0x0000FFFF,
- 0x000000FF
- };
-
- unsigned int cfbendtab[] =
- {
- 0x00000000,
- 0xFF000000,
- 0xFFFF0000,
- 0xFFFFFF00
- };
-
- I tried numerous combinations and am having zero luck. If any one has
- tackled 24 bit color frame buffers, or can suggest some values for
- the above code segments, I'd sure appreciate hearing from you.
-
- Thanks!
- -----, , ------ +-------------------------- Wed Aug 26 4:00 pm
- / /| /| / | To: comp.windows.x
- / / |/ | / | Re: 24 bit cfb
- \__/ /ichael /aylor | Email: miktay@auto-trol.com Phone: (303)252-2352
-
-
-