diff options
author | Alexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de> | 2004-06-21 13:51:57 +0000 |
---|---|---|
committer | Alexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de> | 2004-06-21 13:51:57 +0000 |
commit | c66cc2a219e860ae3c0b5d4ad18b22a6dc4e16df (patch) | |
tree | 51780fa152a1293c7eae3ccaf8630ec9741a0ae8 | |
parent | ed7f92e791f052d64cffef4b44eae5160fb24689 (diff) |
Bug 783: rootless patches for cygwin
-rw-r--r-- | fb/fb.h | 4 | ||||
-rw-r--r-- | miext/rootless/rootlessConfig.h | 14 |
2 files changed, 16 insertions, 2 deletions
@@ -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 diff --git a/miext/rootless/rootlessConfig.h b/miext/rootless/rootlessConfig.h index 93e987fe7..1ee872ad8 100644 --- a/miext/rootless/rootlessConfig.h +++ b/miext/rootless/rootlessConfig.h @@ -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 */ |