diff options
-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 */ |