Bug 783: rootless patches for cygwin
This commit is contained in:
parent
ed7f92e791
commit
c66cc2a219
4
fb/fb.h
4
fb/fb.h
@ -22,7 +22,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $XdotOrg: $ */
|
/* $XdotOrg$ */
|
||||||
|
|
||||||
#ifndef _FB_H_
|
#ifndef _FB_H_
|
||||||
#define _FB_H_
|
#define _FB_H_
|
||||||
@ -641,7 +641,7 @@ typedef struct {
|
|||||||
((WindowPtr) (pWin))->devPrivates[fbWinPrivateIndex].ptr)
|
((WindowPtr) (pWin))->devPrivates[fbWinPrivateIndex].ptr)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __DARWIN__
|
#if defined(__DARWIN__)||defined(__CYGWIN__)
|
||||||
#define __fbPixOriginX(pPix) ((pPix)->drawable.x)
|
#define __fbPixOriginX(pPix) ((pPix)->drawable.x)
|
||||||
#define __fbPixOriginY(pPix) ((pPix)->drawable.y)
|
#define __fbPixOriginY(pPix) ((pPix)->drawable.y)
|
||||||
#else
|
#else
|
||||||
|
@ -47,4 +47,18 @@
|
|||||||
|
|
||||||
#endif /* __DARWIN__ */
|
#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 */
|
#endif /* _ROOTLESSCONFIG_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user