GLYPHBYTES
Suhaib Siddiqi
ssiddiqi@inspirepharm.com
Sun Sep 2 17:55:00 GMT 2001
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
More information about the Cygwin-xfree
mailing list