This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
RE: GLYPHBYTES
- To: "'Harold Hunt'" <huntharo at msu dot edu>, "'cygx'" <cygwin-xfree at cygwin dot com>
- Subject: RE: GLYPHBYTES
- From: Suhaib Siddiqi <ssiddiqi at inspirepharm dot com>
- Date: Sun, 2 Sep 2001 20:55:12 -0400
Harold,
In Xserver/include/Servermd.h
For old server I was using:
#define GLYPHPADBYTES 1
#define GETLEFTBITS_ALIGNMENT 4
i.e.
-------------from Servermd.h-----------
#if defined(vax) || defined(__CYGWIN__) || defined(WIN32)
#define IMAGE_BYTE_ORDER LSBFirst /* Values for the VAX only
*/
#define BITMAP_BIT_ORDER LSBFirst
#define GLYPHPADBYTES 1
#define GETLEFTBITS_ALIGNMENT 4
#define FAST_UNALIGNED_READS
#endif /* vax */
-----------------------
However your code uses shadowfb, cfb... For fb, don't we need?
#define GLYPHPADBYTES 4
#define GETLEFTBITS_ALIGNMENT 1
Following is from fb.h
#if GLYPHPADBYTES != 4
#error "GLYPHPADBYTES must be 4"
#endif
#if GETLEFTBITS_ALIGNMENT != 1
#error "GETLEFTBITS_ALIGNMENT must be 1"
#endif
I think old values for GLYPHBYTES from older server are wrong??????
Suhaib