Cygwin/X: unifdef XFree86Server
Remove XFree86Server define, which was always on anyhow, and the code which was guarded by !XFree86Server This completes the process of removal started in 2006 :-) Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
This commit is contained in:
parent
9ed70f15ef
commit
b2b685e269
|
@ -162,7 +162,6 @@ AM_YFLAGS = -d
|
||||||
AM_LFLAGS = -i
|
AM_LFLAGS = -i
|
||||||
AM_CFLAGS = -DHAVE_XWIN_CONFIG_H $(DIX_CFLAGS) \
|
AM_CFLAGS = -DHAVE_XWIN_CONFIG_H $(DIX_CFLAGS) \
|
||||||
$(XWINMODULES_CFLAGS) \
|
$(XWINMODULES_CFLAGS) \
|
||||||
-DXFree86Server \
|
|
||||||
-I$(top_srcdir)
|
-I$(top_srcdir)
|
||||||
|
|
||||||
MAN_SRCS = XWin.man.pre XWinrc.man.pre
|
MAN_SRCS = XWin.man.pre XWinrc.man.pre
|
||||||
|
|
|
@ -36,14 +36,12 @@
|
||||||
#endif
|
#endif
|
||||||
#include "win.h"
|
#include "win.h"
|
||||||
|
|
||||||
#if defined(XFree86Server)
|
|
||||||
#include "inputstr.h"
|
#include "inputstr.h"
|
||||||
#include "exevents.h" /* for button/axes labels */
|
#include "exevents.h" /* for button/axes labels */
|
||||||
#include "xserver-properties.h"
|
#include "xserver-properties.h"
|
||||||
|
|
||||||
/* Peek the internal button mapping */
|
/* Peek the internal button mapping */
|
||||||
static CARD8 const *g_winMouseButtonMap = NULL;
|
static CARD8 const *g_winMouseButtonMap = NULL;
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -123,9 +121,7 @@ winMouseProc (DeviceIntPtr pDeviceInt, int iState)
|
||||||
free(map);
|
free(map);
|
||||||
free(btn_labels);
|
free(btn_labels);
|
||||||
|
|
||||||
#if defined(XFree86Server)
|
|
||||||
g_winMouseButtonMap = pDeviceInt->button->map;
|
g_winMouseButtonMap = pDeviceInt->button->map;
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DEVICE_ON:
|
case DEVICE_ON:
|
||||||
|
@ -133,9 +129,8 @@ winMouseProc (DeviceIntPtr pDeviceInt, int iState)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DEVICE_CLOSE:
|
case DEVICE_CLOSE:
|
||||||
#if defined(XFree86Server)
|
|
||||||
g_winMouseButtonMap = NULL;
|
g_winMouseButtonMap = NULL;
|
||||||
#endif
|
|
||||||
case DEVICE_OFF:
|
case DEVICE_OFF:
|
||||||
pDevice->on = FALSE;
|
pDevice->on = FALSE;
|
||||||
break;
|
break;
|
||||||
|
@ -241,10 +236,8 @@ winMouseButtonsSendEvent (int iEventType, int iButton)
|
||||||
EventListPtr events;
|
EventListPtr events;
|
||||||
int i, nevents;
|
int i, nevents;
|
||||||
|
|
||||||
#if defined(XFree86Server)
|
|
||||||
if (g_winMouseButtonMap)
|
if (g_winMouseButtonMap)
|
||||||
iButton = g_winMouseButtonMap[iButton];
|
iButton = g_winMouseButtonMap[iButton];
|
||||||
#endif
|
|
||||||
|
|
||||||
GetEventList(&events);
|
GetEventList(&events);
|
||||||
nevents = GetPointerEvents(events, g_pwinPointer, iEventType, iButton,
|
nevents = GetPointerEvents(events, g_pwinPointer, iEventType, iButton,
|
||||||
|
|
|
@ -828,7 +828,6 @@ winInitVisualsShadowDD (ScreenPtr pScreen)
|
||||||
case 24:
|
case 24:
|
||||||
case 16:
|
case 16:
|
||||||
case 15:
|
case 15:
|
||||||
#if defined(XFree86Server)
|
|
||||||
/* Create the real visual */
|
/* Create the real visual */
|
||||||
if (!miSetVisualTypesAndMasks (pScreenInfo->dwDepth,
|
if (!miSetVisualTypesAndMasks (pScreenInfo->dwDepth,
|
||||||
TrueColorMask,
|
TrueColorMask,
|
||||||
|
@ -861,42 +860,9 @@ winInitVisualsShadowDD (ScreenPtr pScreen)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#else /* XFree86Server */
|
|
||||||
/* Create the real visual */
|
|
||||||
if (!fbSetVisualTypesAndMasks (pScreenInfo->dwDepth,
|
|
||||||
TrueColorMask,
|
|
||||||
pScreenPriv->dwBitsPerRGB,
|
|
||||||
pScreenPriv->dwRedMask,
|
|
||||||
pScreenPriv->dwGreenMask,
|
|
||||||
pScreenPriv->dwBlueMask))
|
|
||||||
{
|
|
||||||
ErrorF ("winInitVisualsShadowDD - fbSetVisualTypesAndMasks "
|
|
||||||
"failed for TrueColor\n");
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef XWIN_EMULATEPSEUDO
|
|
||||||
if (!pScreenInfo->fEmulatePseudo)
|
|
||||||
break;
|
|
||||||
|
|
||||||
/* Setup a pseudocolor visual */
|
|
||||||
if (!fbSetVisualTypesAndMasks (8,
|
|
||||||
PseudoColorMask,
|
|
||||||
8,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0))
|
|
||||||
{
|
|
||||||
ErrorF ("winInitVisualsShadowDD - fbSetVisualTypesAndMasks "
|
|
||||||
"failed for PseudoColor\n");
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#endif /* XFree86Server */
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 8:
|
case 8:
|
||||||
#if defined(XFree86Server)
|
|
||||||
if (!miSetVisualTypesAndMasks (pScreenInfo->dwDepth,
|
if (!miSetVisualTypesAndMasks (pScreenInfo->dwDepth,
|
||||||
pScreenInfo->fFullScreen
|
pScreenInfo->fFullScreen
|
||||||
? PseudoColorMask : StaticColorMask,
|
? PseudoColorMask : StaticColorMask,
|
||||||
|
@ -911,20 +877,6 @@ winInitVisualsShadowDD (ScreenPtr pScreen)
|
||||||
"failed\n");
|
"failed\n");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
#else /* XFree86Server */
|
|
||||||
if (!fbSetVisualTypesAndMasks (pScreenInfo->dwDepth,
|
|
||||||
pScreenInfo->fFullScreen
|
|
||||||
? PseudoColorMask : StaticColorMask,
|
|
||||||
pScreenPriv->dwBitsPerRGB,
|
|
||||||
pScreenPriv->dwRedMask,
|
|
||||||
pScreenPriv->dwGreenMask,
|
|
||||||
pScreenPriv->dwBlueMask))
|
|
||||||
{
|
|
||||||
ErrorF ("winInitVisualsShadowDD - fbSetVisualTypesAndMasks "
|
|
||||||
"failed\n");
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
#endif /* XFree86Server */
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -883,7 +883,6 @@ winInitVisualsShadowDDNL (ScreenPtr pScreen)
|
||||||
case 24:
|
case 24:
|
||||||
case 16:
|
case 16:
|
||||||
case 15:
|
case 15:
|
||||||
#if defined(XFree86Server)
|
|
||||||
/* Setup the real visual */
|
/* Setup the real visual */
|
||||||
if (!miSetVisualTypesAndMasks (pScreenInfo->dwDepth,
|
if (!miSetVisualTypesAndMasks (pScreenInfo->dwDepth,
|
||||||
TrueColorMask,
|
TrueColorMask,
|
||||||
|
@ -916,42 +915,9 @@ winInitVisualsShadowDDNL (ScreenPtr pScreen)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#else /* XFree86Server */
|
|
||||||
/* Setup the real visual */
|
|
||||||
if (!fbSetVisualTypesAndMasks (pScreenInfo->dwDepth,
|
|
||||||
TrueColorMask,
|
|
||||||
pScreenPriv->dwBitsPerRGB,
|
|
||||||
pScreenPriv->dwRedMask,
|
|
||||||
pScreenPriv->dwGreenMask,
|
|
||||||
pScreenPriv->dwBlueMask))
|
|
||||||
{
|
|
||||||
ErrorF ("winInitVisualsShadowDDNL - fbSetVisualTypesAndMasks "
|
|
||||||
"failed for TrueColor\n");
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef XWIN_EMULATEPSEUDO
|
|
||||||
if (!pScreenInfo->fEmulatePseudo)
|
|
||||||
break;
|
|
||||||
|
|
||||||
/* Setup a pseudocolor visual */
|
|
||||||
if (!fbSetVisualTypesAndMasks (8,
|
|
||||||
PseudoColorMask,
|
|
||||||
8,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0))
|
|
||||||
{
|
|
||||||
ErrorF ("winInitVisualsShadowDDNL - fbSetVisualTypesAndMasks "
|
|
||||||
"failed for PseudoColor\n");
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#endif /* XFree86Server */
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 8:
|
case 8:
|
||||||
#if defined(XFree86Server)
|
|
||||||
if (!miSetVisualTypesAndMasks (pScreenInfo->dwDepth,
|
if (!miSetVisualTypesAndMasks (pScreenInfo->dwDepth,
|
||||||
pScreenInfo->fFullScreen
|
pScreenInfo->fFullScreen
|
||||||
? PseudoColorMask : StaticColorMask,
|
? PseudoColorMask : StaticColorMask,
|
||||||
|
@ -966,20 +932,6 @@ winInitVisualsShadowDDNL (ScreenPtr pScreen)
|
||||||
"failed\n");
|
"failed\n");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
#else /* XFree86Server */
|
|
||||||
if (!fbSetVisualTypesAndMasks (pScreenInfo->dwDepth,
|
|
||||||
pScreenInfo->fFullScreen
|
|
||||||
? PseudoColorMask : StaticColorMask,
|
|
||||||
pScreenPriv->dwBitsPerRGB,
|
|
||||||
pScreenPriv->dwRedMask,
|
|
||||||
pScreenPriv->dwGreenMask,
|
|
||||||
pScreenPriv->dwBlueMask))
|
|
||||||
{
|
|
||||||
ErrorF ("winInitVisualsShadowDDNL - fbSetVisualTypesAndMasks "
|
|
||||||
"failed\n");
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
#endif /* XFree86Server */
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -715,7 +715,6 @@ winInitVisualsShadowGDI (ScreenPtr pScreen)
|
||||||
case 24:
|
case 24:
|
||||||
case 16:
|
case 16:
|
||||||
case 15:
|
case 15:
|
||||||
#if defined(XFree86Server)
|
|
||||||
/* Setup the real visual */
|
/* Setup the real visual */
|
||||||
if (!miSetVisualTypesAndMasks (pScreenInfo->dwDepth,
|
if (!miSetVisualTypesAndMasks (pScreenInfo->dwDepth,
|
||||||
TrueColorMask,
|
TrueColorMask,
|
||||||
|
@ -748,42 +747,9 @@ winInitVisualsShadowGDI (ScreenPtr pScreen)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#else /* XFree86Server */
|
|
||||||
/* Setup the real visual */
|
|
||||||
if (!fbSetVisualTypesAndMasks (pScreenInfo->dwDepth,
|
|
||||||
TrueColorMask,
|
|
||||||
pScreenPriv->dwBitsPerRGB,
|
|
||||||
pScreenPriv->dwRedMask,
|
|
||||||
pScreenPriv->dwGreenMask,
|
|
||||||
pScreenPriv->dwBlueMask))
|
|
||||||
{
|
|
||||||
ErrorF ("winInitVisualsShadowGDI - fbSetVisualTypesAndMasks "
|
|
||||||
"failed for TrueColor\n");
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef XWIN_EMULATEPSEUDO
|
|
||||||
if (!pScreenInfo->fEmulatePseudo)
|
|
||||||
break;
|
|
||||||
|
|
||||||
/* Setup a pseudocolor visual */
|
|
||||||
if (!fbSetVisualTypesAndMasks (8,
|
|
||||||
PseudoColorMask,
|
|
||||||
8,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
0))
|
|
||||||
{
|
|
||||||
ErrorF ("winInitVisualsShadowGDI - fbSetVisualTypesAndMasks "
|
|
||||||
"failed for PseudoColor\n");
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
#endif /* XFree86Server */
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 8:
|
case 8:
|
||||||
#if defined(XFree86Server)
|
|
||||||
if (!miSetVisualTypesAndMasks (pScreenInfo->dwDepth,
|
if (!miSetVisualTypesAndMasks (pScreenInfo->dwDepth,
|
||||||
PseudoColorMask,
|
PseudoColorMask,
|
||||||
pScreenPriv->dwBitsPerRGB,
|
pScreenPriv->dwBitsPerRGB,
|
||||||
|
@ -796,19 +762,6 @@ winInitVisualsShadowGDI (ScreenPtr pScreen)
|
||||||
"failed\n");
|
"failed\n");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
#else /* XFree86Server */
|
|
||||||
if (!fbSetVisualTypesAndMasks (pScreenInfo->dwDepth,
|
|
||||||
PseudoColorMask,
|
|
||||||
pScreenPriv->dwBitsPerRGB,
|
|
||||||
pScreenPriv->dwRedMask,
|
|
||||||
pScreenPriv->dwGreenMask,
|
|
||||||
pScreenPriv->dwBlueMask))
|
|
||||||
{
|
|
||||||
ErrorF ("winInitVisualsShadowGDI - fbSetVisualTypesAndMasks "
|
|
||||||
"failed\n");
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue