Bug 783: rootless patches for cygwin

This commit is contained in:
Alexander Gottwald 2004-06-21 13:51:57 +00:00
parent ed7f92e791
commit c66cc2a219
2 changed files with 16 additions and 2 deletions

View File

@ -22,7 +22,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $XdotOrg: $ */
/* $XdotOrg$ */
#ifndef _FB_H_
#define _FB_H_
@ -641,7 +641,7 @@ typedef struct {
((WindowPtr) (pWin))->devPrivates[fbWinPrivateIndex].ptr)
#endif
#ifdef __DARWIN__
#if defined(__DARWIN__)||defined(__CYGWIN__)
#define __fbPixOriginX(pPix) ((pPix)->drawable.x)
#define __fbPixOriginY(pPix) ((pPix)->drawable.y)
#else

View File

@ -47,4 +47,18 @@
#endif /* __DARWIN__ */
#ifdef __CYGWIN__
# define ROOTLESS_ACCEL YES
# define ROOTLESS_GLOBAL_COORDS TRUE
# define ROOTLESS_PROTECT_ALPHA NO
# define ROOTLESS_REDISPLAY_DELAY 10
# undef ROOTLESS_RESIZE_GRAVITY
# undef ROOTLESS_TRACK_DAMAGE
/*# define ROOTLESSDEBUG*/
# define RootlessAlphaMask(bpp) ((bpp) == 32 ? 0xFF000000 : 0)
#endif /* __CYGWIN__ */
#endif /* _ROOTLESSCONFIG_H */