This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: GLYPHBYTES




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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]