45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Platform specific rootless configuration
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Copyright (c) 2003 Torrey T. Lyons. All Rights Reserved.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Permission is hereby granted, free of charge, to any person obtaining a
45e9809aff7304721fddb95654901b32195c9c7avboxsync * copy of this software and associated documentation files (the "Software"),
45e9809aff7304721fddb95654901b32195c9c7avboxsync * to deal in the Software without restriction, including without limitation
45e9809aff7304721fddb95654901b32195c9c7avboxsync * the rights to use, copy, modify, merge, publish, distribute, sublicense,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * and/or sell copies of the Software, and to permit persons to whom the
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Software is furnished to do so, subject to the following conditions:
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * The above copyright notice and this permission notice shall be included in
45e9809aff7304721fddb95654901b32195c9c7avboxsync * all copies or substantial portions of the Software.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
45e9809aff7304721fddb95654901b32195c9c7avboxsync * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
45e9809aff7304721fddb95654901b32195c9c7avboxsync * THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
45e9809aff7304721fddb95654901b32195c9c7avboxsync * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
45e9809aff7304721fddb95654901b32195c9c7avboxsync * DEALINGS IN THE SOFTWARE.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Except as contained in this notice, the name(s) of the above copyright
45e9809aff7304721fddb95654901b32195c9c7avboxsync * holders shall not be used in advertising or otherwise to promote the sale,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * use or other dealings in this Software without prior written authorization.
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifdef HAVE_DIX_CONFIG_H
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <dix-config.h>
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifndef _ROOTLESSCONFIG_H
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define _ROOTLESSCONFIG_H
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifdef __DARWIN__
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync# define ROOTLESS_ACCEL TRUE
45e9809aff7304721fddb95654901b32195c9c7avboxsync# define ROOTLESS_GLOBAL_COORDS TRUE
45e9809aff7304721fddb95654901b32195c9c7avboxsync# define ROOTLESS_PROTECT_ALPHA TRUE
45e9809aff7304721fddb95654901b32195c9c7avboxsync# define ROOTLESS_REDISPLAY_DELAY 10
45e9809aff7304721fddb95654901b32195c9c7avboxsync# define ROOTLESS_RESIZE_GRAVITY TRUE
45e9809aff7304721fddb95654901b32195c9c7avboxsync# undef ROOTLESS_TRACK_DAMAGE
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync/* Bit mask for alpha channel with a particular number of bits per
45e9809aff7304721fddb95654901b32195c9c7avboxsync pixel. Note that we only care for 32bpp data. Mac OS X uses planar
45e9809aff7304721fddb95654901b32195c9c7avboxsync alpha for 16bpp. */
45e9809aff7304721fddb95654901b32195c9c7avboxsync# define RootlessAlphaMask(bpp) ((bpp) == 32 ? 0xFF000000 : 0)
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif /* __DARWIN__ */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#if defined(__CYGWIN__) || defined(WIN32)
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync# define ROOTLESS_ACCEL YES
45e9809aff7304721fddb95654901b32195c9c7avboxsync# define ROOTLESS_GLOBAL_COORDS TRUE
45e9809aff7304721fddb95654901b32195c9c7avboxsync# define ROOTLESS_PROTECT_ALPHA NO
45e9809aff7304721fddb95654901b32195c9c7avboxsync# define ROOTLESS_REDISPLAY_DELAY 10
45e9809aff7304721fddb95654901b32195c9c7avboxsync# undef ROOTLESS_RESIZE_GRAVITY
45e9809aff7304721fddb95654901b32195c9c7avboxsync# undef ROOTLESS_TRACK_DAMAGE
45e9809aff7304721fddb95654901b32195c9c7avboxsync/*# define ROOTLESSDEBUG*/
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync# define RootlessAlphaMask(bpp) ((bpp) == 32 ? 0xFF000000 : 0)
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif /* __CYGWIN__ */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif /* _ROOTLESSCONFIG_H */