Merge remote-tracking branch 'jamey/reviewed'
This commit is contained in:
commit
b018b81533
|
@ -388,7 +388,7 @@ XineramaRegisterConnectionBlockCallback(void (*func)(void))
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void XineramaInitData(ScreenPtr pScreen)
|
static void XineramaInitData(void)
|
||||||
{
|
{
|
||||||
int i, w, h;
|
int i, w, h;
|
||||||
|
|
||||||
|
@ -397,7 +397,7 @@ static void XineramaInitData(ScreenPtr pScreen)
|
||||||
BoxRec TheBox;
|
BoxRec TheBox;
|
||||||
RegionRec ScreenRegion;
|
RegionRec ScreenRegion;
|
||||||
|
|
||||||
pScreen = screenInfo.screens[i];
|
ScreenPtr pScreen = screenInfo.screens[i];
|
||||||
|
|
||||||
TheBox.x1 = pScreen->x;
|
TheBox.x1 = pScreen->x;
|
||||||
TheBox.x2 = TheBox.x1 + pScreen->width;
|
TheBox.x2 = TheBox.x1 + pScreen->width;
|
||||||
|
@ -414,7 +414,7 @@ static void XineramaInitData(ScreenPtr pScreen)
|
||||||
PanoramiXPixHeight = screenInfo.screens[0]->y + screenInfo.screens[0]->height;
|
PanoramiXPixHeight = screenInfo.screens[0]->y + screenInfo.screens[0]->height;
|
||||||
|
|
||||||
FOR_NSCREENS_FORWARD_SKIP(i) {
|
FOR_NSCREENS_FORWARD_SKIP(i) {
|
||||||
pScreen = screenInfo.screens[i];
|
ScreenPtr pScreen = screenInfo.screens[i];
|
||||||
w = pScreen->x + pScreen->width;
|
w = pScreen->x + pScreen->width;
|
||||||
h = pScreen->y + pScreen->height;
|
h = pScreen->y + pScreen->height;
|
||||||
|
|
||||||
|
@ -425,10 +425,10 @@ static void XineramaInitData(ScreenPtr pScreen)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void XineramaReinitData(ScreenPtr pScreen)
|
void XineramaReinitData(void)
|
||||||
{
|
{
|
||||||
RegionUninit(&PanoramiXScreenRegion);
|
RegionUninit(&PanoramiXScreenRegion);
|
||||||
XineramaInitData(pScreen);
|
XineramaInitData();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -525,7 +525,7 @@ void PanoramiXExtensionInit(int argc, char *argv[])
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
XineramaInitData(pScreen);
|
XineramaInitData();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Put our processes into the ProcVector
|
* Put our processes into the ProcVector
|
||||||
|
|
|
@ -19,7 +19,7 @@ extern _X_EXPORT PanoramiXRes * PanoramiXFindIDByScrnum(RESTYPE, XID, int);
|
||||||
extern _X_EXPORT Bool XineramaRegisterConnectionBlockCallback(void (*func)(void));
|
extern _X_EXPORT Bool XineramaRegisterConnectionBlockCallback(void (*func)(void));
|
||||||
extern _X_EXPORT int XineramaDeleteResource(pointer, XID);
|
extern _X_EXPORT int XineramaDeleteResource(pointer, XID);
|
||||||
|
|
||||||
extern _X_EXPORT void XineramaReinitData(ScreenPtr);
|
extern _X_EXPORT void XineramaReinitData(void);
|
||||||
|
|
||||||
extern _X_EXPORT RESTYPE XRC_DRAWABLE;
|
extern _X_EXPORT RESTYPE XRC_DRAWABLE;
|
||||||
extern _X_EXPORT RESTYPE XRT_WINDOW;
|
extern _X_EXPORT RESTYPE XRT_WINDOW;
|
||||||
|
|
|
@ -991,7 +991,6 @@ CreatePmap:
|
||||||
pMap->drawable.serialNumber = NEXT_SERIAL_NUMBER;
|
pMap->drawable.serialNumber = NEXT_SERIAL_NUMBER;
|
||||||
pMap->drawable.id = newPix->info[j].id;
|
pMap->drawable.id = newPix->info[j].id;
|
||||||
if (!AddResource(newPix->info[j].id, RT_PIXMAP, (pointer)pMap)) {
|
if (!AddResource(newPix->info[j].id, RT_PIXMAP, (pointer)pMap)) {
|
||||||
(*pScreen->DestroyPixmap)(pMap);
|
|
||||||
result = BadAlloc;
|
result = BadAlloc;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -1002,10 +1001,8 @@ CreatePmap:
|
||||||
}
|
}
|
||||||
|
|
||||||
if(result == BadAlloc) {
|
if(result == BadAlloc) {
|
||||||
while(j--) {
|
while(j--)
|
||||||
(*pScreen->DestroyPixmap)(pMap);
|
|
||||||
FreeResource(newPix->info[j].id, RT_NONE);
|
FreeResource(newPix->info[j].id, RT_NONE);
|
||||||
}
|
|
||||||
free(newPix);
|
free(newPix);
|
||||||
} else
|
} else
|
||||||
AddResource(stuff->pid, XRT_PIXMAP, newPix);
|
AddResource(stuff->pid, XRT_PIXMAP, newPix);
|
||||||
|
@ -1110,7 +1107,6 @@ CreatePmap:
|
||||||
{
|
{
|
||||||
return Success;
|
return Success;
|
||||||
}
|
}
|
||||||
pDraw->pScreen->DestroyPixmap(pMap);
|
|
||||||
}
|
}
|
||||||
return BadAlloc;
|
return BadAlloc;
|
||||||
}
|
}
|
||||||
|
|
30
configure.ac
30
configure.ac
|
@ -582,9 +582,6 @@ AC_ARG_ENABLE(install-libxf86config,
|
||||||
AC_ARG_ENABLE(visibility, AC_HELP_STRING([--enable-visibility], [Enable symbol visibility (default: auto)]),
|
AC_ARG_ENABLE(visibility, AC_HELP_STRING([--enable-visibility], [Enable symbol visibility (default: auto)]),
|
||||||
[SYMBOL_VISIBILITY=$enableval],
|
[SYMBOL_VISIBILITY=$enableval],
|
||||||
[SYMBOL_VISIBILITY=auto])
|
[SYMBOL_VISIBILITY=auto])
|
||||||
AC_ARG_ENABLE(pc98, AC_HELP_STRING([--enable-pc98], [Enable PC98 support in Xorg (default: auto)]),
|
|
||||||
[SUPPORT_PC98=$enableval],
|
|
||||||
[SUPPORT_PC98=auto])
|
|
||||||
|
|
||||||
dnl GLX build options
|
dnl GLX build options
|
||||||
AC_ARG_ENABLE(aiglx, AS_HELP_STRING([--enable-aiglx], [Build accelerated indirect GLX (default: enabled)]),
|
AC_ARG_ENABLE(aiglx, AS_HELP_STRING([--enable-aiglx], [Build accelerated indirect GLX (default: enabled)]),
|
||||||
|
@ -705,10 +702,6 @@ AM_CONDITIONAL(SECURE_RPC, [test "x$SECURE_RPC" = xyes])
|
||||||
AM_CONDITIONAL(INT10_VM86, [test "x$INT10" = xvm86])
|
AM_CONDITIONAL(INT10_VM86, [test "x$INT10" = xvm86])
|
||||||
AM_CONDITIONAL(INT10_X86EMU, [test "x$INT10" = xx86emu])
|
AM_CONDITIONAL(INT10_X86EMU, [test "x$INT10" = xx86emu])
|
||||||
AM_CONDITIONAL(INT10_STUB, [test "x$INT10" = xstub])
|
AM_CONDITIONAL(INT10_STUB, [test "x$INT10" = xstub])
|
||||||
if test "x$INT10" = xyes; then
|
|
||||||
dnl VM86 headers
|
|
||||||
AC_CHECK_HEADERS([sys/vm86.h sys/io.h])
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl Handle installing libxf86config
|
dnl Handle installing libxf86config
|
||||||
AM_CONDITIONAL(INSTALL_LIBXF86CONFIG, [test "x$INSTALL_LIBXF86CONFIG" = xyes])
|
AM_CONDITIONAL(INSTALL_LIBXF86CONFIG, [test "x$INSTALL_LIBXF86CONFIG" = xyes])
|
||||||
|
@ -1573,7 +1566,6 @@ if test "x$XORG" = xyes; then
|
||||||
if test "x$LNXAPM" = xyes; then
|
if test "x$LNXAPM" = xyes; then
|
||||||
XORG_CFLAGS="$XORG_CFLAGS -DXF86PM"
|
XORG_CFLAGS="$XORG_CFLAGS -DXF86PM"
|
||||||
fi
|
fi
|
||||||
XORG_OS="linux"
|
|
||||||
XORG_OS_SUBDIR="linux"
|
XORG_OS_SUBDIR="linux"
|
||||||
xorg_bus_linuxpci="yes"
|
xorg_bus_linuxpci="yes"
|
||||||
linux_acpi="no"
|
linux_acpi="no"
|
||||||
|
@ -1593,12 +1585,10 @@ if test "x$XORG" = xyes; then
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
freebsd* | kfreebsd*-gnu | dragonfly*)
|
freebsd* | kfreebsd*-gnu | dragonfly*)
|
||||||
XORG_OS="freebsd"
|
|
||||||
XORG_OS_SUBDIR="bsd"
|
XORG_OS_SUBDIR="bsd"
|
||||||
xorg_bus_bsdpci="yes"
|
xorg_bus_bsdpci="yes"
|
||||||
;;
|
;;
|
||||||
netbsd*)
|
netbsd*)
|
||||||
XORG_OS="netbsd"
|
|
||||||
XORG_OS_SUBDIR="bsd"
|
XORG_OS_SUBDIR="bsd"
|
||||||
xorg_bus_bsdpci="yes"
|
xorg_bus_bsdpci="yes"
|
||||||
;;
|
;;
|
||||||
|
@ -1607,12 +1597,10 @@ if test "x$XORG" = xyes; then
|
||||||
-o "x$ac_cv_BSD_KQUEUE_APM" = xyes; then
|
-o "x$ac_cv_BSD_KQUEUE_APM" = xyes; then
|
||||||
XORG_CFLAGS="$XORG_CFLAGS -DXF86PM"
|
XORG_CFLAGS="$XORG_CFLAGS -DXF86PM"
|
||||||
fi
|
fi
|
||||||
XORG_OS="openbsd"
|
|
||||||
XORG_OS_SUBDIR="bsd"
|
XORG_OS_SUBDIR="bsd"
|
||||||
xorg_bus_bsdpci="yes"
|
xorg_bus_bsdpci="yes"
|
||||||
;;
|
;;
|
||||||
solaris*)
|
solaris*)
|
||||||
XORG_OS="solaris"
|
|
||||||
XORG_OS_SUBDIR="solaris"
|
XORG_OS_SUBDIR="solaris"
|
||||||
XORG_CFLAGS="$XORG_CFLAGS -DXF86PM"
|
XORG_CFLAGS="$XORG_CFLAGS -DXF86PM"
|
||||||
# Use the same stubs as BSD for old functions, since we now
|
# Use the same stubs as BSD for old functions, since we now
|
||||||
|
@ -1659,19 +1647,14 @@ if test "x$XORG" = xyes; then
|
||||||
XORG_CFLAGS="${XORG_CFLAGS} "'$(SOLARIS_ASM_CFLAGS)'
|
XORG_CFLAGS="${XORG_CFLAGS} "'$(SOLARIS_ASM_CFLAGS)'
|
||||||
fi
|
fi
|
||||||
AC_SUBST([SOLARIS_ASM_CFLAGS])
|
AC_SUBST([SOLARIS_ASM_CFLAGS])
|
||||||
if test "x$SUPPORT_PC98" = xauto; then
|
|
||||||
SUPPORT_PC98="no"
|
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
gnu*)
|
gnu*)
|
||||||
XORG_OS="gnu"
|
|
||||||
XORG_OS_SUBDIR="hurd"
|
XORG_OS_SUBDIR="hurd"
|
||||||
# Use the same stubs as BSD for old functions, since we now
|
# Use the same stubs as BSD for old functions, since we now
|
||||||
# use libpciaccess for PCI
|
# use libpciaccess for PCI
|
||||||
xorg_bus_bsdpci="yes"
|
xorg_bus_bsdpci="yes"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
XORG_OS="unknown"
|
|
||||||
XORG_OS_SUBDIR="unknown"
|
XORG_OS_SUBDIR="unknown"
|
||||||
AC_MSG_ERROR([m4_text_wrap(m4_join([ ],
|
AC_MSG_ERROR([m4_text_wrap(m4_join([ ],
|
||||||
[Your OS is unknown. Xorg currently only supports Linux,],
|
[Your OS is unknown. Xorg currently only supports Linux,],
|
||||||
|
@ -1686,21 +1669,9 @@ if test "x$XORG" = xyes; then
|
||||||
xorg_bus_sparc="yes"
|
xorg_bus_sparc="yes"
|
||||||
;;
|
;;
|
||||||
i*86)
|
i*86)
|
||||||
if test "x$SUPPORT_PC98" = xauto; then
|
|
||||||
SUPPORT_PC98="yes"
|
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if test "x$SUPPORT_PC98" = xauto; then
|
|
||||||
SUPPORT_PC98="no"
|
|
||||||
fi
|
|
||||||
if test "x$SUPPORT_PC98" = xyes; then
|
|
||||||
AC_DEFINE(SUPPORT_PC98, 1, [Support PC98])
|
|
||||||
fi
|
|
||||||
if test "x$XORG_OS_PCI" = x ; then
|
|
||||||
XORG_OS_PCI=$XORG_OS
|
|
||||||
fi
|
|
||||||
if test "x$DGA" = xauto; then
|
if test "x$DGA" = xauto; then
|
||||||
PKG_CHECK_MODULES(DGA, $DGAPROTO, [DGA=yes], [DGA=no])
|
PKG_CHECK_MODULES(DGA, $DGAPROTO, [DGA=yes], [DGA=no])
|
||||||
fi
|
fi
|
||||||
|
@ -1729,7 +1700,6 @@ if test "x$XORG" = xyes; then
|
||||||
AC_SUBST([XORG_LIBS])
|
AC_SUBST([XORG_LIBS])
|
||||||
AC_SUBST([XORG_SYS_LIBS])
|
AC_SUBST([XORG_SYS_LIBS])
|
||||||
AC_SUBST([XORG_INCS])
|
AC_SUBST([XORG_INCS])
|
||||||
AC_SUBST([XORG_OS])
|
|
||||||
AC_SUBST([XORG_OS_SUBDIR])
|
AC_SUBST([XORG_OS_SUBDIR])
|
||||||
AC_SUBST([XORG_CFLAGS])
|
AC_SUBST([XORG_CFLAGS])
|
||||||
|
|
||||||
|
|
|
@ -287,13 +287,6 @@ CreateColormap (Colormap mid, ScreenPtr pScreen, VisualPtr pVisual,
|
||||||
if (!pmap)
|
if (!pmap)
|
||||||
return BadAlloc;
|
return BadAlloc;
|
||||||
}
|
}
|
||||||
#if defined(_XSERVER64)
|
|
||||||
pmap->pad0 = 0;
|
|
||||||
pmap->pad1 = 0;
|
|
||||||
#if (X_BYTE_ORDER == X_LITTLE_ENDIAN)
|
|
||||||
pmap->pad2 = 0;
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
pmap->red = (EntryPtr)((char *)pmap + sizeof(ColormapRec));
|
pmap->red = (EntryPtr)((char *)pmap + sizeof(ColormapRec));
|
||||||
sizebytes = size * sizeof(Entry);
|
sizebytes = size * sizeof(Entry);
|
||||||
pmap->clientPixelsRed = (Pixel **)((char *)pmap->red + sizebytes);
|
pmap->clientPixelsRed = (Pixel **)((char *)pmap->red + sizebytes);
|
||||||
|
|
|
@ -72,7 +72,7 @@ typedef struct _GlyphShare {
|
||||||
|
|
||||||
static GlyphSharePtr sharedGlyphs = (GlyphSharePtr)NULL;
|
static GlyphSharePtr sharedGlyphs = (GlyphSharePtr)NULL;
|
||||||
|
|
||||||
DevPrivateKeyRec cursorScreenDevPriv[MAXSCREENS];
|
DevScreenPrivateKeyRec cursorScreenDevPriv;
|
||||||
|
|
||||||
#ifdef XFIXES
|
#ifdef XFIXES
|
||||||
static CARD32 cursorSerial;
|
static CARD32 cursorSerial;
|
||||||
|
|
|
@ -1419,7 +1419,6 @@ CreatePmap:
|
||||||
}
|
}
|
||||||
if (AddResource(stuff->pid, RT_PIXMAP, (pointer)pMap))
|
if (AddResource(stuff->pid, RT_PIXMAP, (pointer)pMap))
|
||||||
return Success;
|
return Success;
|
||||||
(*pDraw->pScreen->DestroyPixmap)(pMap);
|
|
||||||
}
|
}
|
||||||
return BadAlloc;
|
return BadAlloc;
|
||||||
}
|
}
|
||||||
|
@ -3911,7 +3910,7 @@ AddScreen(
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
dixRegisterPrivateKey(&cursorScreenDevPriv[i], PRIVATE_CURSOR, 0);
|
dixRegisterScreenPrivateKey(&cursorScreenDevPriv, pScreen, PRIVATE_CURSOR, 0);
|
||||||
|
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,7 +49,6 @@
|
||||||
#include <X11/Xaw/Viewport.h>
|
#include <X11/Xaw/Viewport.h>
|
||||||
#include <X11/Xaw/Dialog.h>
|
#include <X11/Xaw/Dialog.h>
|
||||||
#include <X11/keysym.h>
|
#include <X11/keysym.h>
|
||||||
#include <X11/Xmu/SysUtil.h>
|
|
||||||
#include "Canvas.h"
|
#include "Canvas.h"
|
||||||
|
|
||||||
#include "dmxparse.h"
|
#include "dmxparse.h"
|
||||||
|
@ -199,8 +198,8 @@ static void dmxConfigDataUpdate(void)
|
||||||
XtVaSetValues(ndbutton1, XtNsensitive, False, NULL);
|
XtVaSetValues(ndbutton1, XtNsensitive, False, NULL);
|
||||||
} else {
|
} else {
|
||||||
name = dmxConfigCurrent->name;
|
name = dmxConfigCurrent->name;
|
||||||
XmuSnprintf(cnambuf, sizeof(cnambuf), "%s", name ? name : "");
|
snprintf(cnambuf, sizeof(cnambuf), "%s", name ? name : "");
|
||||||
XmuSnprintf(cdimbuf, sizeof(cdimbuf), "%dx%d",
|
snprintf(cdimbuf, sizeof(cdimbuf), "%dx%d",
|
||||||
dmxConfigWallWidth, dmxConfigWallHeight);
|
dmxConfigWallWidth, dmxConfigWallHeight);
|
||||||
XtVaSetValues(cnamebox, XtNlabel, cnambuf, XtNsensitive, True, NULL);
|
XtVaSetValues(cnamebox, XtNlabel, cnambuf, XtNsensitive, True, NULL);
|
||||||
XtVaSetValues(cdimbox, XtNlabel, cdimbuf, XtNsensitive, True, NULL);
|
XtVaSetValues(cdimbox, XtNlabel, cdimbuf, XtNsensitive, True, NULL);
|
||||||
|
@ -219,22 +218,22 @@ static void dmxConfigDataUpdate(void)
|
||||||
XtVaSetValues(ddbutton, XtNsensitive, False, NULL);
|
XtVaSetValues(ddbutton, XtNsensitive, False, NULL);
|
||||||
} else {
|
} else {
|
||||||
name = dmxConfigCurrentDisplay->name;
|
name = dmxConfigCurrentDisplay->name;
|
||||||
XmuSnprintf(nambuf, sizeof(nambuf), "%s", name ? name : "");
|
snprintf(nambuf, sizeof(nambuf), "%s", name ? name : "");
|
||||||
XmuSnprintf(dimbuf, sizeof(dimbuf), "%dx%d%c%d%c%d",
|
snprintf(dimbuf, sizeof(dimbuf), "%dx%d%c%d%c%d",
|
||||||
dmxConfigCurrentDisplay->scrnWidth,
|
dmxConfigCurrentDisplay->scrnWidth,
|
||||||
dmxConfigCurrentDisplay->scrnHeight,
|
dmxConfigCurrentDisplay->scrnHeight,
|
||||||
dmxConfigCurrentDisplay->scrnXSign < 0 ? '-' : '+',
|
dmxConfigCurrentDisplay->scrnXSign < 0 ? '-' : '+',
|
||||||
dmxConfigCurrentDisplay->scrnX,
|
dmxConfigCurrentDisplay->scrnX,
|
||||||
dmxConfigCurrentDisplay->scrnYSign < 0 ? '-' : '+',
|
dmxConfigCurrentDisplay->scrnYSign < 0 ? '-' : '+',
|
||||||
dmxConfigCurrentDisplay->scrnY);
|
dmxConfigCurrentDisplay->scrnY);
|
||||||
XmuSnprintf(rtbuf, sizeof(dimbuf), "%dx%d%c%d%c%d",
|
snprintf(rtbuf, sizeof(dimbuf), "%dx%d%c%d%c%d",
|
||||||
dmxConfigCurrentDisplay->rootWidth,
|
dmxConfigCurrentDisplay->rootWidth,
|
||||||
dmxConfigCurrentDisplay->rootHeight,
|
dmxConfigCurrentDisplay->rootHeight,
|
||||||
dmxConfigCurrentDisplay->rootXSign < 0 ? '-' : '+',
|
dmxConfigCurrentDisplay->rootXSign < 0 ? '-' : '+',
|
||||||
dmxConfigCurrentDisplay->rootX,
|
dmxConfigCurrentDisplay->rootX,
|
||||||
dmxConfigCurrentDisplay->rootYSign < 0 ? '-' : '+',
|
dmxConfigCurrentDisplay->rootYSign < 0 ? '-' : '+',
|
||||||
dmxConfigCurrentDisplay->rootY);
|
dmxConfigCurrentDisplay->rootY);
|
||||||
XmuSnprintf(offbuf, sizeof(offbuf), "@%dx%d",
|
snprintf(offbuf, sizeof(offbuf), "@%dx%d",
|
||||||
dmxConfigCurrentDisplay->rootXOrigin,
|
dmxConfigCurrentDisplay->rootXOrigin,
|
||||||
dmxConfigCurrentDisplay->rootYOrigin);
|
dmxConfigCurrentDisplay->rootYOrigin);
|
||||||
XtVaSetValues(namebox, XtNlabel, nambuf, XtNsensitive, True, NULL);
|
XtVaSetValues(namebox, XtNlabel, nambuf, XtNsensitive, True, NULL);
|
||||||
|
@ -596,14 +595,14 @@ static void dmxConfigCanCallback(Widget w, XtPointer closure,
|
||||||
static void dmxConfigECCallback(Widget w, XtPointer closure,
|
static void dmxConfigECCallback(Widget w, XtPointer closure,
|
||||||
XtPointer callData)
|
XtPointer callData)
|
||||||
{
|
{
|
||||||
char buf[256]; /* RATS: Only used in XmuSnprintf */
|
char buf[256]; /* RATS: Only used in snprintf */
|
||||||
|
|
||||||
if (!dmxConfigCurrent) return;
|
if (!dmxConfigCurrent) return;
|
||||||
dmxConfigSetPopupPosition(ecpopup);
|
dmxConfigSetPopupPosition(ecpopup);
|
||||||
XtVaSetValues(ecdialog0, XtNvalue,
|
XtVaSetValues(ecdialog0, XtNvalue,
|
||||||
dmxConfigCurrent->name ? dmxConfigCurrent->name : "",
|
dmxConfigCurrent->name ? dmxConfigCurrent->name : "",
|
||||||
NULL);
|
NULL);
|
||||||
XmuSnprintf(buf, sizeof(buf), "%dx%d",
|
snprintf(buf, sizeof(buf), "%dx%d",
|
||||||
dmxConfigCurrent->width, dmxConfigCurrent->height);
|
dmxConfigCurrent->width, dmxConfigCurrent->height);
|
||||||
XtVaSetValues(ecdialog1, XtNvalue, buf, NULL);
|
XtVaSetValues(ecdialog1, XtNvalue, buf, NULL);
|
||||||
XtPopup(ecpopup, XtGrabExclusive);
|
XtPopup(ecpopup, XtGrabExclusive);
|
||||||
|
@ -692,7 +691,7 @@ static void dmxConfigECCanCallback(Widget w, XtPointer closure,
|
||||||
static void dmxConfigEDCallback(Widget w, XtPointer closure,
|
static void dmxConfigEDCallback(Widget w, XtPointer closure,
|
||||||
XtPointer callData)
|
XtPointer callData)
|
||||||
{
|
{
|
||||||
char buf[256]; /* RATS: Only used in XmuSnprintf */
|
char buf[256]; /* RATS: Only used in snprintf */
|
||||||
|
|
||||||
if (!dmxConfigCurrent || !dmxConfigCurrentDisplay) return;
|
if (!dmxConfigCurrent || !dmxConfigCurrentDisplay) return;
|
||||||
dmxConfigSetPopupPosition(edpopup);
|
dmxConfigSetPopupPosition(edpopup);
|
||||||
|
@ -701,7 +700,7 @@ static void dmxConfigEDCallback(Widget w, XtPointer closure,
|
||||||
? dmxConfigCurrentDisplay->name
|
? dmxConfigCurrentDisplay->name
|
||||||
: "",
|
: "",
|
||||||
NULL);
|
NULL);
|
||||||
XmuSnprintf(buf, sizeof(buf), "%dx%d%c%d%c%d",
|
snprintf(buf, sizeof(buf), "%dx%d%c%d%c%d",
|
||||||
dmxConfigCurrentDisplay->scrnWidth,
|
dmxConfigCurrentDisplay->scrnWidth,
|
||||||
dmxConfigCurrentDisplay->scrnHeight,
|
dmxConfigCurrentDisplay->scrnHeight,
|
||||||
dmxConfigCurrentDisplay->scrnXSign < 0 ? '-' : '+',
|
dmxConfigCurrentDisplay->scrnXSign < 0 ? '-' : '+',
|
||||||
|
@ -709,7 +708,7 @@ static void dmxConfigEDCallback(Widget w, XtPointer closure,
|
||||||
dmxConfigCurrentDisplay->scrnYSign < 0 ? '-' : '+',
|
dmxConfigCurrentDisplay->scrnYSign < 0 ? '-' : '+',
|
||||||
dmxConfigCurrentDisplay->scrnY);
|
dmxConfigCurrentDisplay->scrnY);
|
||||||
XtVaSetValues(eddialog1, XtNvalue, buf, NULL);
|
XtVaSetValues(eddialog1, XtNvalue, buf, NULL);
|
||||||
XmuSnprintf(buf, sizeof(buf), "@%dx%d",
|
snprintf(buf, sizeof(buf), "@%dx%d",
|
||||||
dmxConfigCurrentDisplay->rootXOrigin,
|
dmxConfigCurrentDisplay->rootXOrigin,
|
||||||
dmxConfigCurrentDisplay->rootYOrigin);
|
dmxConfigCurrentDisplay->rootYOrigin);
|
||||||
XtVaSetValues(eddialog2, XtNvalue, buf, NULL);
|
XtVaSetValues(eddialog2, XtNvalue, buf, NULL);
|
||||||
|
|
|
@ -82,7 +82,6 @@ typedef XID KeySym64;
|
||||||
#include <X11/Xutil.h>
|
#include <X11/Xutil.h>
|
||||||
#include <X11/Xatom.h>
|
#include <X11/Xatom.h>
|
||||||
#include <X11/cursorfont.h>
|
#include <X11/cursorfont.h>
|
||||||
#include <X11/Xmu/SysUtil.h> /* For XmuSnprintf */
|
|
||||||
|
|
||||||
#include <X11/extensions/shape.h>
|
#include <X11/extensions/shape.h>
|
||||||
|
|
||||||
|
|
|
@ -64,9 +64,9 @@ extern void dmxBECreateCursor(ScreenPtr pScreen, CursorPtr pCursor);
|
||||||
extern Bool dmxBEFreeCursor(ScreenPtr pScreen, CursorPtr pCursor);
|
extern Bool dmxBEFreeCursor(ScreenPtr pScreen, CursorPtr pCursor);
|
||||||
|
|
||||||
#define DMX_GET_CURSOR_PRIV(_pCursor, _pScreen) ((dmxCursorPrivPtr) \
|
#define DMX_GET_CURSOR_PRIV(_pCursor, _pScreen) ((dmxCursorPrivPtr) \
|
||||||
dixLookupPrivate(&(_pCursor)->devPrivates, CursorScreenKey(_pScreen)))
|
dixLookupScreenPrivate(&(_pCursor)->devPrivates, CursorScreenKey, _pScreen))
|
||||||
|
|
||||||
#define DMX_SET_CURSOR_PRIV(_pCursor, _pScreen, v) \
|
#define DMX_SET_CURSOR_PRIV(_pCursor, _pScreen, v) \
|
||||||
dixSetPrivate(&(_pCursor)->devPrivates, CursorScreenKey(_pScreen), v)
|
dixSetScreenPrivate(&(_pCursor)->devPrivates, CursorScreenKey, _pScreen, v)
|
||||||
|
|
||||||
#endif /* DMXCURSOR_H */
|
#endif /* DMXCURSOR_H */
|
||||||
|
|
|
@ -455,7 +455,7 @@ static void dmxSetRootWindowOrigin(int idx, int x, int y)
|
||||||
pScreen->y = dmxScreen->rootYOrigin;
|
pScreen->y = dmxScreen->rootYOrigin;
|
||||||
|
|
||||||
/* Recalculate the Xinerama regions and data structs */
|
/* Recalculate the Xinerama regions and data structs */
|
||||||
XineramaReinitData(pScreen);
|
XineramaReinitData();
|
||||||
|
|
||||||
/* Adjust each of the root window's children */
|
/* Adjust each of the root window's children */
|
||||||
if (!idx) ReinitializeRootWindow(screenInfo.screens[0]->root, xoff, yoff);
|
if (!idx) ReinitializeRootWindow(screenInfo.screens[0]->root, xoff, yoff);
|
||||||
|
|
|
@ -56,6 +56,7 @@
|
||||||
#include "dmxpict.h"
|
#include "dmxpict.h"
|
||||||
|
|
||||||
#include <X11/Xos.h> /* For gettimeofday */
|
#include <X11/Xos.h> /* For gettimeofday */
|
||||||
|
#include <X11/Xmu/SysUtil.h> /* For XmuGetHostname */
|
||||||
#include "dixstruct.h"
|
#include "dixstruct.h"
|
||||||
#ifdef PANORAMIX
|
#ifdef PANORAMIX
|
||||||
#include "panoramiXsrv.h"
|
#include "panoramiXsrv.h"
|
||||||
|
@ -131,7 +132,7 @@ static int dmxErrorHandler(Display *dpy, XErrorEvent *ev)
|
||||||
|
|
||||||
/* Find major opcode name */
|
/* Find major opcode name */
|
||||||
if (ev->request_code < 128) {
|
if (ev->request_code < 128) {
|
||||||
XmuSnprintf(request, sizeof(request), "%d", ev->request_code);
|
snprintf(request, sizeof(request), "%d", ev->request_code);
|
||||||
XGetErrorDatabaseText(dpy, "XRequest", request, "", buf, sizeof(buf));
|
XGetErrorDatabaseText(dpy, "XRequest", request, "", buf, sizeof(buf));
|
||||||
} else {
|
} else {
|
||||||
for (ext = dpy->ext_procs;
|
for (ext = dpy->ext_procs;
|
||||||
|
@ -145,8 +146,8 @@ static int dmxErrorHandler(Display *dpy, XErrorEvent *ev)
|
||||||
|
|
||||||
/* Find minor opcode name */
|
/* Find minor opcode name */
|
||||||
if (ev->request_code >= 128 && ext) {
|
if (ev->request_code >= 128 && ext) {
|
||||||
XmuSnprintf(request, sizeof(request), "%d", ev->request_code);
|
snprintf(request, sizeof(request), "%d", ev->request_code);
|
||||||
XmuSnprintf(request, sizeof(request), "%s.%d",
|
snprintf(request, sizeof(request), "%s.%d",
|
||||||
ext->name, ev->minor_code);
|
ext->name, ev->minor_code);
|
||||||
XGetErrorDatabaseText(dpy, "XRequest", request, "", buf, sizeof(buf));
|
XGetErrorDatabaseText(dpy, "XRequest", request, "", buf, sizeof(buf));
|
||||||
dmxLog(dmxWarning, " Minor opcode: %d (%s)\n",
|
dmxLog(dmxWarning, " Minor opcode: %d (%s)\n",
|
||||||
|
@ -515,7 +516,7 @@ static const char *dmxExecOS(void)
|
||||||
if (!initialized++) {
|
if (!initialized++) {
|
||||||
memset(buffer, 0, sizeof(buffer));
|
memset(buffer, 0, sizeof(buffer));
|
||||||
uname(&u);
|
uname(&u);
|
||||||
XmuSnprintf(buffer, sizeof(buffer)-1, "%s %s %s",
|
snprintf(buffer, sizeof(buffer)-1, "%s %s %s",
|
||||||
u.sysname, u.release, u.version);
|
u.sysname, u.release, u.version);
|
||||||
}
|
}
|
||||||
return buffer;
|
return buffer;
|
||||||
|
@ -530,7 +531,7 @@ static const char *dmxBuildCompiler(void)
|
||||||
if (!initialized++) {
|
if (!initialized++) {
|
||||||
memset(buffer, 0, sizeof(buffer));
|
memset(buffer, 0, sizeof(buffer));
|
||||||
#if defined(__GNUC__) && defined(__GNUC_MINOR__) &&defined(__GNUC_PATCHLEVEL__)
|
#if defined(__GNUC__) && defined(__GNUC_MINOR__) &&defined(__GNUC_PATCHLEVEL__)
|
||||||
XmuSnprintf(buffer, sizeof(buffer)-1, "gcc %d.%d.%d",
|
snprintf(buffer, sizeof(buffer)-1, "gcc %d.%d.%d",
|
||||||
__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__);
|
__GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,6 +62,7 @@
|
||||||
#include "dmx.h"
|
#include "dmx.h"
|
||||||
#include "dmxprop.h"
|
#include "dmxprop.h"
|
||||||
#include "dmxlog.h"
|
#include "dmxlog.h"
|
||||||
|
#include <X11/Xmu/SysUtil.h> /* For XmuGetHostname */
|
||||||
|
|
||||||
/** Holds the window id of all DMX windows on the backend X server. */
|
/** Holds the window id of all DMX windows on the backend X server. */
|
||||||
#define DMX_ATOMNAME "DMX_NAME"
|
#define DMX_ATOMNAME "DMX_NAME"
|
||||||
|
@ -87,7 +88,7 @@ static const unsigned char *dmxPropertyIdentifier(void)
|
||||||
if (initialized++) return (unsigned char *)buf;
|
if (initialized++) return (unsigned char *)buf;
|
||||||
|
|
||||||
XmuGetHostname(hostname, sizeof(hostname));
|
XmuGetHostname(hostname, sizeof(hostname));
|
||||||
XmuSnprintf(buf, sizeof(buf), "%s:%s:%s", DMX_IDENT, hostname, display);
|
snprintf(buf, sizeof(buf), "%s:%s:%s", DMX_IDENT, hostname, display);
|
||||||
return (unsigned char *)buf;
|
return (unsigned char *)buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -319,7 +320,7 @@ void dmxPropertyWindow(DMXScreenInfo *dmxScreen)
|
||||||
Display *dpy = dmxScreen->beDisplay;
|
Display *dpy = dmxScreen->beDisplay;
|
||||||
Window win = dmxScreen->scrnWin;
|
Window win = dmxScreen->scrnWin;
|
||||||
DMXScreenInfo *other;
|
DMXScreenInfo *other;
|
||||||
char buf[128]; /* RATS: only used with XmuSnprintf */
|
char buf[128]; /* RATS: only used with snprintf */
|
||||||
|
|
||||||
if (!dpy)
|
if (!dpy)
|
||||||
return; /* FIXME: What should be done here if Xdmx is started
|
return; /* FIXME: What should be done here if Xdmx is started
|
||||||
|
@ -336,12 +337,12 @@ void dmxPropertyWindow(DMXScreenInfo *dmxScreen)
|
||||||
other->index, other->name, other->scrnWin);
|
other->index, other->name, other->scrnWin);
|
||||||
}
|
}
|
||||||
|
|
||||||
XmuSnprintf(buf, sizeof(buf), ".%d,%lu", dmxScreen->index,
|
snprintf(buf, sizeof(buf), ".%d,%lu", dmxScreen->index,
|
||||||
(long unsigned)win);
|
(long unsigned)win);
|
||||||
XChangeProperty(dpy, RootWindow(dpy,0), atom, XA_STRING, 8,
|
XChangeProperty(dpy, RootWindow(dpy,0), atom, XA_STRING, 8,
|
||||||
PropModeAppend, (unsigned char *)buf, strlen(buf));
|
PropModeAppend, (unsigned char *)buf, strlen(buf));
|
||||||
|
|
||||||
XmuSnprintf(buf, sizeof(buf), "%s,%d", id, dmxScreen->index);
|
snprintf(buf, sizeof(buf), "%s,%d", id, dmxScreen->index);
|
||||||
XChangeProperty(dpy, win, atom, XA_STRING, 8,
|
XChangeProperty(dpy, win, atom, XA_STRING, 8,
|
||||||
PropModeAppend, (unsigned char *)buf, strlen(buf));
|
PropModeAppend, (unsigned char *)buf, strlen(buf));
|
||||||
}
|
}
|
||||||
|
|
|
@ -3392,7 +3392,7 @@ Unrepaired warnings are as follows:
|
||||||
<orderedlist>
|
<orderedlist>
|
||||||
<listitem><para>
|
<listitem><para>
|
||||||
Fixed-size buffers are used in many areas, but code has been
|
Fixed-size buffers are used in many areas, but code has been
|
||||||
added to protect against buffer overflows (e.g., XmuSnprint).
|
added to protect against buffer overflows (e.g., snprintf).
|
||||||
The only instances that have not yet been fixed are in
|
The only instances that have not yet been fixed are in
|
||||||
config/xdmxconfig.c (which is not part of the Xdmx server) and
|
config/xdmxconfig.c (which is not part of the Xdmx server) and
|
||||||
input/usb-common.c.
|
input/usb-common.c.
|
||||||
|
|
|
@ -39,7 +39,6 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
#include <X11/Xutil.h>
|
#include <X11/Xutil.h>
|
||||||
#include <X11/Xmu/SysUtil.h>
|
|
||||||
#include <X11/extensions/dmxext.h>
|
#include <X11/extensions/dmxext.h>
|
||||||
|
|
||||||
static const char *FontName = "fixed";
|
static const char *FontName = "fixed";
|
||||||
|
@ -80,7 +79,7 @@ EventLoop(Display *dpy, Window win, GC gc)
|
||||||
y += 20;
|
y += 20;
|
||||||
for (i = 0; i < count; i++) {
|
for (i = 0; i < count; i++) {
|
||||||
char str[500];
|
char str[500];
|
||||||
XmuSnprintf(str, sizeof(str),
|
snprintf(str, sizeof(str),
|
||||||
"screen %d: pos: %dx%d+%d+%d visible: %dx%d+%d+%d",
|
"screen %d: pos: %dx%d+%d+%d visible: %dx%d+%d+%d",
|
||||||
winInfo[i].screen,
|
winInfo[i].screen,
|
||||||
winInfo[i].pos.width, winInfo[i].pos.height,
|
winInfo[i].pos.width, winInfo[i].pos.height,
|
||||||
|
|
|
@ -59,9 +59,6 @@
|
||||||
extern __GLXFBConfig **__glXFBConfigs;
|
extern __GLXFBConfig **__glXFBConfigs;
|
||||||
extern int __glXNumFBConfigs;
|
extern int __glXNumFBConfigs;
|
||||||
|
|
||||||
extern __GLXFBConfig *glxLookupFBConfig( GLXFBConfigID id );
|
|
||||||
extern __GLXFBConfig *glxLookupFBConfigByVID( VisualID vid );
|
|
||||||
extern __GLXFBConfig *glxLookupBackEndFBConfig( GLXFBConfigID id, int screen );
|
|
||||||
extern int glxIsExtensionSupported( char *ext );
|
extern int glxIsExtensionSupported( char *ext );
|
||||||
extern int __glXGetFBConfigsSGIX(__GLXclientState *cl, GLbyte *pc);
|
extern int __glXGetFBConfigsSGIX(__GLXclientState *cl, GLbyte *pc);
|
||||||
|
|
||||||
|
@ -70,6 +67,44 @@ extern int __glXGetFBConfigsSGIX(__GLXclientState *cl, GLbyte *pc);
|
||||||
(x) - dmxScreen->glxErrorBase + __glXerrorBase \
|
(x) - dmxScreen->glxErrorBase + __glXerrorBase \
|
||||||
: (x) )
|
: (x) )
|
||||||
|
|
||||||
|
static __GLXFBConfig *glxLookupFBConfig( GLXFBConfigID id )
|
||||||
|
{
|
||||||
|
int i,j;
|
||||||
|
|
||||||
|
for (i=0, j=0; i<__glXNumFBConfigs; i++,j+=(__glXNumActiveScreens+1) ) {
|
||||||
|
if ( __glXFBConfigs[j]->id == id)
|
||||||
|
return __glXFBConfigs[j];
|
||||||
|
}
|
||||||
|
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
static __GLXFBConfig *glxLookupFBConfigByVID( VisualID vid )
|
||||||
|
{
|
||||||
|
int i,j;
|
||||||
|
|
||||||
|
for (i=0, j=0; i<__glXNumFBConfigs; i++,j+=(__glXNumActiveScreens+1) ) {
|
||||||
|
if ( __glXFBConfigs[j]->associatedVisualId == vid)
|
||||||
|
return __glXFBConfigs[j];
|
||||||
|
}
|
||||||
|
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
static __GLXFBConfig *glxLookupBackEndFBConfig( GLXFBConfigID id, int screen )
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
int j;
|
||||||
|
|
||||||
|
for (i=0, j=0; i<__glXNumFBConfigs; i++,j+=(__glXNumActiveScreens+1) ) {
|
||||||
|
if ( __glXFBConfigs[j]->id == id)
|
||||||
|
return __glXFBConfigs[j+screen+1];
|
||||||
|
}
|
||||||
|
|
||||||
|
return NULL;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
Display *GetBackEndDisplay( __GLXclientState *cl, int s )
|
Display *GetBackEndDisplay( __GLXclientState *cl, int s )
|
||||||
{
|
{
|
||||||
if (! cl->be_displays[s] ) {
|
if (! cl->be_displays[s] ) {
|
||||||
|
|
|
@ -326,45 +326,6 @@ char *__glXGetServerString( unsigned int name )
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
__GLXFBConfig *glxLookupFBConfig( GLXFBConfigID id )
|
|
||||||
{
|
|
||||||
int i,j;
|
|
||||||
|
|
||||||
for (i=0, j=0; i<__glXNumFBConfigs; i++,j+=(__glXNumActiveScreens+1) ) {
|
|
||||||
if ( __glXFBConfigs[j]->id == id)
|
|
||||||
return __glXFBConfigs[j];
|
|
||||||
}
|
|
||||||
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
__GLXFBConfig *glxLookupFBConfigByVID( VisualID vid )
|
|
||||||
{
|
|
||||||
int i,j;
|
|
||||||
|
|
||||||
for (i=0, j=0; i<__glXNumFBConfigs; i++,j+=(__glXNumActiveScreens+1) ) {
|
|
||||||
if ( __glXFBConfigs[j]->associatedVisualId == vid)
|
|
||||||
return __glXFBConfigs[j];
|
|
||||||
}
|
|
||||||
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
__GLXFBConfig *glxLookupBackEndFBConfig( GLXFBConfigID id, int screen )
|
|
||||||
{
|
|
||||||
int i;
|
|
||||||
int j;
|
|
||||||
|
|
||||||
for (i=0, j=0; i<__glXNumFBConfigs; i++,j+=(__glXNumActiveScreens+1) ) {
|
|
||||||
if ( __glXFBConfigs[j]->id == id)
|
|
||||||
return __glXFBConfigs[j+screen+1];
|
|
||||||
}
|
|
||||||
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
int glxIsExtensionSupported( char *ext )
|
int glxIsExtensionSupported( char *ext )
|
||||||
{
|
{
|
||||||
return( strstr(ExtensionsString, ext) != NULL );
|
return( strstr(ExtensionsString, ext) != NULL );
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
#include "unpack.h"
|
#include "unpack.h"
|
||||||
#include "g_disptab.h"
|
#include "g_disptab.h"
|
||||||
|
|
||||||
GLint __glEvalComputeK(GLenum target)
|
static GLint __glEvalComputeK(GLenum target)
|
||||||
{
|
{
|
||||||
switch (target) {
|
switch (target) {
|
||||||
case GL_MAP1_VERTEX_4:
|
case GL_MAP1_VERTEX_4:
|
||||||
|
|
|
@ -671,9 +671,9 @@ static char *dmxMakeUniqueDeviceName(DMXLocalInputInfoPtr dmxLocal)
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (dmxLocal->type) {
|
switch (dmxLocal->type) {
|
||||||
case DMX_LOCAL_KEYBOARD: XmuSnprintf(buf, LEN, "Keyboard%d", k++); break;
|
case DMX_LOCAL_KEYBOARD: snprintf(buf, LEN, "Keyboard%d", k++); break;
|
||||||
case DMX_LOCAL_MOUSE: XmuSnprintf(buf, LEN, "Mouse%d", m++); break;
|
case DMX_LOCAL_MOUSE: snprintf(buf, LEN, "Mouse%d", m++); break;
|
||||||
default: XmuSnprintf(buf, LEN, "Other%d", o++); break;
|
default: snprintf(buf, LEN, "Other%d", o++); break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return buf;
|
return buf;
|
||||||
|
|
|
@ -429,11 +429,11 @@ static int kbdLinuxOpenVT(int vtno)
|
||||||
{
|
{
|
||||||
int fd = -1;
|
int fd = -1;
|
||||||
int i;
|
int i;
|
||||||
const char *vcs[] = { "/dev/vc/%d", "/dev/tty%d", NULL };
|
const char *vcs[] = { "/dev/vc/", "/dev/tty", NULL };
|
||||||
char name[64]; /* RATS: Only used in XmuSnprintf */
|
char name[64]; /* RATS: Only used in snprintf */
|
||||||
|
|
||||||
for (i = 0; vcs[i]; i++) {
|
for (i = 0; vcs[i]; i++) {
|
||||||
XmuSnprintf(name, sizeof(name), vcs[i], vtno);
|
snprintf(name, sizeof(name), "%s%d", vcs[i], vtno);
|
||||||
if ((fd = open(name, O_RDWR | O_NONBLOCK, 0)) >= 0) break;
|
if ((fd = open(name, O_RDWR | O_NONBLOCK, 0)) >= 0) break;
|
||||||
}
|
}
|
||||||
if (fd < 0)
|
if (fd < 0)
|
||||||
|
|
|
@ -272,7 +272,7 @@ device. */
|
||||||
void usbInit(DevicePtr pDev, usbType type)
|
void usbInit(DevicePtr pDev, usbType type)
|
||||||
{
|
{
|
||||||
GETPRIV;
|
GETPRIV;
|
||||||
char name[64]; /* RATS: Only used in XmuSnprintf */
|
char name[64]; /* RATS: Only used in snprintf */
|
||||||
int i, j, k;
|
int i, j, k;
|
||||||
char buf[256] = { 0, }; /* RATS: Use ok */
|
char buf[256] = { 0, }; /* RATS: Use ok */
|
||||||
int version;
|
int version;
|
||||||
|
@ -284,7 +284,7 @@ void usbInit(DevicePtr pDev, usbType type)
|
||||||
if (priv->fd >=0) return;
|
if (priv->fd >=0) return;
|
||||||
|
|
||||||
for (i = 0; i < 32; i++) {
|
for (i = 0; i < 32; i++) {
|
||||||
XmuSnprintf(name, sizeof(name), "/dev/input/event%d", i);
|
snprintf(name, sizeof(name), "/dev/input/event%d", i);
|
||||||
if ((priv->fd = open(name, O_RDWR | O_NONBLOCK, 0)) >= 0) {
|
if ((priv->fd = open(name, O_RDWR | O_NONBLOCK, 0)) >= 0) {
|
||||||
ioctl(priv->fd, EVIOCGVERSION, &version);
|
ioctl(priv->fd, EVIOCGVERSION, &version);
|
||||||
ioctl(priv->fd, EVIOCGNAME(sizeof(buf)), buf);
|
ioctl(priv->fd, EVIOCGNAME(sizeof(buf)), buf);
|
||||||
|
|
|
@ -263,7 +263,6 @@ extern _X_EXPORT Bool xf86GetVidModeEnabled(void);
|
||||||
extern _X_EXPORT Bool xf86GetModInDevAllowNonLocal(void);
|
extern _X_EXPORT Bool xf86GetModInDevAllowNonLocal(void);
|
||||||
extern _X_EXPORT Bool xf86GetModInDevEnabled(void);
|
extern _X_EXPORT Bool xf86GetModInDevEnabled(void);
|
||||||
extern _X_EXPORT Bool xf86GetAllowMouseOpenFail(void);
|
extern _X_EXPORT Bool xf86GetAllowMouseOpenFail(void);
|
||||||
extern _X_EXPORT Bool xf86IsPc98(void);
|
|
||||||
extern _X_EXPORT void xf86DisableRandR(void);
|
extern _X_EXPORT void xf86DisableRandR(void);
|
||||||
extern _X_EXPORT CARD32 xorgGetVersion(void);
|
extern _X_EXPORT CARD32 xorgGetVersion(void);
|
||||||
extern _X_EXPORT CARD32 xf86GetModuleVersion(pointer module);
|
extern _X_EXPORT CARD32 xf86GetModuleVersion(pointer module);
|
||||||
|
|
|
@ -676,7 +676,6 @@ typedef enum {
|
||||||
FLAG_DPMS_SUSPENDTIME,
|
FLAG_DPMS_SUSPENDTIME,
|
||||||
FLAG_DPMS_OFFTIME,
|
FLAG_DPMS_OFFTIME,
|
||||||
FLAG_PIXMAP,
|
FLAG_PIXMAP,
|
||||||
FLAG_PC98,
|
|
||||||
FLAG_NOPM,
|
FLAG_NOPM,
|
||||||
FLAG_XINERAMA,
|
FLAG_XINERAMA,
|
||||||
FLAG_LOG,
|
FLAG_LOG,
|
||||||
|
@ -724,8 +723,6 @@ static OptionInfoRec FlagOptions[] = {
|
||||||
{0}, FALSE },
|
{0}, FALSE },
|
||||||
{ FLAG_PIXMAP, "Pixmap", OPTV_INTEGER,
|
{ FLAG_PIXMAP, "Pixmap", OPTV_INTEGER,
|
||||||
{0}, FALSE },
|
{0}, FALSE },
|
||||||
{ FLAG_PC98, "PC98", OPTV_BOOLEAN,
|
|
||||||
{0}, FALSE },
|
|
||||||
{ FLAG_NOPM, "NoPM", OPTV_BOOLEAN,
|
{ FLAG_NOPM, "NoPM", OPTV_BOOLEAN,
|
||||||
{0}, FALSE },
|
{0}, FALSE },
|
||||||
{ FLAG_XINERAMA, "Xinerama", OPTV_BOOLEAN,
|
{ FLAG_XINERAMA, "Xinerama", OPTV_BOOLEAN,
|
||||||
|
@ -756,21 +753,6 @@ static OptionInfoRec FlagOptions[] = {
|
||||||
{0}, FALSE },
|
{0}, FALSE },
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef SUPPORT_PC98
|
|
||||||
static Bool
|
|
||||||
detectPC98(void)
|
|
||||||
{
|
|
||||||
unsigned char buf[2];
|
|
||||||
|
|
||||||
if (xf86ReadBIOS(0xf8000, 0xe80, buf, 2) != 2)
|
|
||||||
return FALSE;
|
|
||||||
if ((buf[0] == 0x98) && (buf[1] == 0x21))
|
|
||||||
return TRUE;
|
|
||||||
else
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static Bool
|
static Bool
|
||||||
configServerFlags(XF86ConfFlagsPtr flagsconf, XF86OptionPtr layoutopts)
|
configServerFlags(XF86ConfFlagsPtr flagsconf, XF86OptionPtr layoutopts)
|
||||||
{
|
{
|
||||||
|
@ -1026,18 +1008,6 @@ configServerFlags(XF86ConfFlagsPtr flagsconf, XF86OptionPtr layoutopts)
|
||||||
xf86Info.pixmap24 = Pix24DontCare;
|
xf86Info.pixmap24 = Pix24DontCare;
|
||||||
xf86Info.pix24From = X_DEFAULT;
|
xf86Info.pix24From = X_DEFAULT;
|
||||||
}
|
}
|
||||||
#ifdef SUPPORT_PC98
|
|
||||||
if (xf86GetOptValBool(FlagOptions, FLAG_PC98, &value)) {
|
|
||||||
xf86Info.pc98 = value;
|
|
||||||
if (value) {
|
|
||||||
xf86Msg(X_CONFIG, "Japanese PC98 architecture\n");
|
|
||||||
}
|
|
||||||
} else
|
|
||||||
if (detectPC98()) {
|
|
||||||
xf86Info.pc98 = TRUE;
|
|
||||||
xf86Msg(X_PROBED, "Japanese PC98 architecture\n");
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef PANORAMIX
|
#ifdef PANORAMIX
|
||||||
from = X_DEFAULT;
|
from = X_DEFAULT;
|
||||||
|
|
|
@ -119,9 +119,6 @@ xf86InfoRec xf86Info = {
|
||||||
.miscModInDevAllowNonLocal = FALSE,
|
.miscModInDevAllowNonLocal = FALSE,
|
||||||
.pixmap24 = Pix24DontCare,
|
.pixmap24 = Pix24DontCare,
|
||||||
.pix24From = X_DEFAULT,
|
.pix24From = X_DEFAULT,
|
||||||
#ifdef SUPPORT_PC98
|
|
||||||
.pc98 = FALSE,
|
|
||||||
#endif
|
|
||||||
.pmFlag = TRUE,
|
.pmFlag = TRUE,
|
||||||
.log = LogNone,
|
.log = LogNone,
|
||||||
.disableRandR = FALSE,
|
.disableRandR = FALSE,
|
||||||
|
|
|
@ -1583,16 +1583,6 @@ xf86GetAllowMouseOpenFail(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Bool
|
|
||||||
xf86IsPc98(void)
|
|
||||||
{
|
|
||||||
#if SUPPORT_PC98
|
|
||||||
return xf86Info.pc98;
|
|
||||||
#else
|
|
||||||
return FALSE;
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
xf86DisableRandR(void)
|
xf86DisableRandR(void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -91,9 +91,6 @@ typedef struct {
|
||||||
input device events */
|
input device events */
|
||||||
Pix24Flags pixmap24;
|
Pix24Flags pixmap24;
|
||||||
MessageType pix24From;
|
MessageType pix24From;
|
||||||
#ifdef SUPPORT_PC98
|
|
||||||
Bool pc98;
|
|
||||||
#endif
|
|
||||||
Bool pmFlag;
|
Bool pmFlag;
|
||||||
Log log;
|
Log log;
|
||||||
Bool disableRandR;
|
Bool disableRandR;
|
||||||
|
|
|
@ -128,10 +128,6 @@ xf86ExtendedInitInt10(int entityIndex, int Flags)
|
||||||
int screen;
|
int screen;
|
||||||
legacyVGARec vga;
|
legacyVGARec vga;
|
||||||
|
|
||||||
#if 0
|
|
||||||
CARD32 cs;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
screen = (xf86FindScreenForEntity(entityIndex))->scrnIndex;
|
screen = (xf86FindScreenForEntity(entityIndex))->scrnIndex;
|
||||||
|
|
||||||
options = xf86HandleInt10Options(xf86Screens[screen],entityIndex);
|
options = xf86HandleInt10Options(xf86Screens[screen],entityIndex);
|
||||||
|
@ -174,17 +170,9 @@ xf86ExtendedInitInt10(int entityIndex, int Flags)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Retrieve everything between V_BIOS and SYS_BIOS as some system BIOSes
|
* Retrieve everything between V_BIOS and SYS_BIOS as some system BIOSes
|
||||||
* have executable code there. Note that xf86ReadBIOS() can only read in
|
* have executable code there.
|
||||||
* 64kB at a time.
|
|
||||||
*/
|
*/
|
||||||
memset((char *)base + V_BIOS, 0, SYS_BIOS - V_BIOS);
|
memset((char *)base + V_BIOS, 0, SYS_BIOS - V_BIOS);
|
||||||
#if 0
|
|
||||||
for (cs = V_BIOS; cs < SYS_BIOS; cs += V_BIOS_SIZE)
|
|
||||||
if (xf86ReadBIOS(cs, 0, (unsigned char *)base + cs, V_BIOS_SIZE) <
|
|
||||||
V_BIOS_SIZE)
|
|
||||||
xf86DrvMsg(screen, X_WARNING,
|
|
||||||
"Unable to retrieve all of segment 0x%06X.\n", cs);
|
|
||||||
#endif
|
|
||||||
INTPriv(pInt)->highMemory = V_BIOS;
|
INTPriv(pInt)->highMemory = V_BIOS;
|
||||||
|
|
||||||
if (xf86IsEntityPrimary(entityIndex) && !(initPrimary(options))) {
|
if (xf86IsEntityPrimary(entityIndex) && !(initPrimary(options))) {
|
||||||
|
|
|
@ -347,7 +347,7 @@ x_inw(CARD16 port)
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Emulate a PC98's timer. Typical resolution is 3.26 usec.
|
* Emulate a PC's timer. Typical resolution is 3.26 usec.
|
||||||
* Approximate this by dividing by 3.
|
* Approximate this by dividing by 3.
|
||||||
*/
|
*/
|
||||||
X_GETTIMEOFDAY(&tv);
|
X_GETTIMEOFDAY(&tv);
|
||||||
|
|
|
@ -241,9 +241,6 @@ int10_check_bios(int scrnIndex, int codeSeg, const unsigned char* vbiosMem)
|
||||||
((codeSeg << 4) >= SYS_SIZE))
|
((codeSeg << 4) >= SYS_SIZE))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (xf86IsPc98())
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
if ((*vbiosMem != 0x55) || (*(vbiosMem+1) != 0xAA) || !*(vbiosMem+2))
|
if ((*vbiosMem != 0x55) || (*(vbiosMem+1) != 0xAA) || !*(vbiosMem+2))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
|
|
@ -634,12 +634,6 @@ are 24 and 32.
|
||||||
Default: 32 unless driver constraints don't allow this (which is rare).
|
Default: 32 unless driver constraints don't allow this (which is rare).
|
||||||
Note: some clients don't behave well when this value is set to 24.
|
Note: some clients don't behave well when this value is set to 24.
|
||||||
.TP 7
|
.TP 7
|
||||||
.BI "Option \*qPC98\*q \*q" boolean \*q
|
|
||||||
Specify that the machine is a Japanese PC\-98 machine.
|
|
||||||
This should not be enabled for anything other than the Japanese\-specific
|
|
||||||
PC\-98 architecture.
|
|
||||||
Default: auto\-detected.
|
|
||||||
.TP 7
|
|
||||||
.BI "Option \*qNoPM\*q \*q" boolean \*q
|
.BI "Option \*qNoPM\*q \*q" boolean \*q
|
||||||
Disables something to do with power management events.
|
Disables something to do with power management events.
|
||||||
Default: PM enabled on platforms that support it.
|
Default: PM enabled on platforms that support it.
|
||||||
|
|
|
@ -252,7 +252,7 @@ xf86_set_cursor_colors (ScrnInfoPtr scrn, int bg, int fg)
|
||||||
CursorPtr cursor = xf86_config->cursor;
|
CursorPtr cursor = xf86_config->cursor;
|
||||||
int c;
|
int c;
|
||||||
CARD8 *bits = cursor ?
|
CARD8 *bits = cursor ?
|
||||||
dixLookupPrivate(&cursor->devPrivates, CursorScreenKey(screen))
|
dixLookupScreenPrivate(&cursor->devPrivates, CursorScreenKey, screen)
|
||||||
: NULL;
|
: NULL;
|
||||||
|
|
||||||
/* Save ARGB versions of these colors */
|
/* Save ARGB versions of these colors */
|
||||||
|
@ -650,7 +650,7 @@ xf86_reload_cursors (ScreenPtr screen)
|
||||||
|
|
||||||
if (cursor)
|
if (cursor)
|
||||||
{
|
{
|
||||||
void *src = dixLookupPrivate(&cursor->devPrivates, CursorScreenKey(screen));
|
void *src = dixLookupScreenPrivate(&cursor->devPrivates, CursorScreenKey, screen);
|
||||||
#ifdef ARGB_CURSOR
|
#ifdef ARGB_CURSOR
|
||||||
if (cursor->bits->argb && cursor_info->LoadCursorARGB)
|
if (cursor->bits->argb && cursor_info->LoadCursorARGB)
|
||||||
(*cursor_info->LoadCursorARGB) (scrn, cursor);
|
(*cursor_info->LoadCursorARGB) (scrn, cursor);
|
||||||
|
|
|
@ -273,7 +273,7 @@ xf86CursorRealizeCursor(DeviceIntPtr pDev, ScreenPtr pScreen, CursorPtr pCurs)
|
||||||
&pScreen->devPrivates, xf86CursorScreenKey);
|
&pScreen->devPrivates, xf86CursorScreenKey);
|
||||||
|
|
||||||
if (pCurs->refcnt <= 1)
|
if (pCurs->refcnt <= 1)
|
||||||
dixSetPrivate(&pCurs->devPrivates, CursorScreenKey(pScreen), NULL);
|
dixSetScreenPrivate(&pCurs->devPrivates, CursorScreenKey, pScreen, NULL);
|
||||||
|
|
||||||
return (*ScreenPriv->spriteFuncs->RealizeCursor)(pDev, pScreen, pCurs);
|
return (*ScreenPriv->spriteFuncs->RealizeCursor)(pDev, pScreen, pCurs);
|
||||||
}
|
}
|
||||||
|
@ -286,8 +286,8 @@ xf86CursorUnrealizeCursor(DeviceIntPtr pDev, ScreenPtr pScreen,
|
||||||
&pScreen->devPrivates, xf86CursorScreenKey);
|
&pScreen->devPrivates, xf86CursorScreenKey);
|
||||||
|
|
||||||
if (pCurs->refcnt <= 1) {
|
if (pCurs->refcnt <= 1) {
|
||||||
free(dixLookupPrivate(&pCurs->devPrivates, CursorScreenKey(pScreen)));
|
free(dixLookupScreenPrivate(&pCurs->devPrivates, CursorScreenKey, pScreen));
|
||||||
dixSetPrivate(&pCurs->devPrivates, CursorScreenKey(pScreen), NULL);
|
dixSetScreenPrivate(&pCurs->devPrivates, CursorScreenKey, pScreen, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (*ScreenPriv->spriteFuncs->UnrealizeCursor)(pDev, pScreen, pCurs);
|
return (*ScreenPriv->spriteFuncs->UnrealizeCursor)(pDev, pScreen, pCurs);
|
||||||
|
|
|
@ -123,7 +123,7 @@ xf86SetCursor(ScreenPtr pScreen, CursorPtr pCurs, int x, int y)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
bits = dixLookupPrivate(&pCurs->devPrivates, CursorScreenKey(pScreen));
|
bits = dixLookupScreenPrivate(&pCurs->devPrivates, CursorScreenKey, pScreen);
|
||||||
|
|
||||||
x -= infoPtr->pScrn->frameX0 + ScreenPriv->HotX;
|
x -= infoPtr->pScrn->frameX0 + ScreenPriv->HotX;
|
||||||
y -= infoPtr->pScrn->frameY0 + ScreenPriv->HotY;
|
y -= infoPtr->pScrn->frameY0 + ScreenPriv->HotY;
|
||||||
|
@ -133,7 +133,7 @@ xf86SetCursor(ScreenPtr pScreen, CursorPtr pCurs, int x, int y)
|
||||||
#endif
|
#endif
|
||||||
if (!bits) {
|
if (!bits) {
|
||||||
bits = (*infoPtr->RealizeCursor)(infoPtr, pCurs);
|
bits = (*infoPtr->RealizeCursor)(infoPtr, pCurs);
|
||||||
dixSetPrivate(&pCurs->devPrivates, CursorScreenKey(pScreen), bits);
|
dixSetScreenPrivate(&pCurs->devPrivates, CursorScreenKey, pScreen, bits);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(infoPtr->Flags & HARDWARE_CURSOR_UPDATE_UNHIDDEN))
|
if (!(infoPtr->Flags & HARDWARE_CURSOR_UPDATE_UNHIDDEN))
|
||||||
|
|
|
@ -49,7 +49,6 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
# ifndef NO_INLINE
|
|
||||||
# ifdef __GNUC__
|
# ifdef __GNUC__
|
||||||
|
|
||||||
/* Define some packed structures to use with unaligned accesses */
|
/* Define some packed structures to use with unaligned accesses */
|
||||||
|
@ -139,7 +138,6 @@ static __inline__ void stw_u(u16 val, u16 *p)
|
||||||
}
|
}
|
||||||
|
|
||||||
# endif /* __GNUC__ */
|
# endif /* __GNUC__ */
|
||||||
# endif /* NO_INLINE */
|
|
||||||
/*------------------------- Global Variables ------------------------------*/
|
/*------------------------- Global Variables ------------------------------*/
|
||||||
|
|
||||||
X86EMU_sysEnv _X86EMU_env; /* Global emulator machine state */
|
X86EMU_sysEnv _X86EMU_env; /* Global emulator machine state */
|
||||||
|
|
|
@ -81,7 +81,6 @@ xnestCreateGC(GCPtr pGC)
|
||||||
xnestGCPriv(pGC)->gc = XCreateGC(xnestDisplay,
|
xnestGCPriv(pGC)->gc = XCreateGC(xnestDisplay,
|
||||||
xnestDefaultDrawables[pGC->depth],
|
xnestDefaultDrawables[pGC->depth],
|
||||||
0L, NULL);
|
0L, NULL);
|
||||||
xnestGCPriv(pGC)->nClipRects = 0;
|
|
||||||
|
|
||||||
return True;
|
return True;
|
||||||
}
|
}
|
||||||
|
@ -282,7 +281,6 @@ xnestChangeClip(GCPtr pGC, int type, pointer pValue, int nRects)
|
||||||
|
|
||||||
pGC->clientClipType = type;
|
pGC->clientClipType = type;
|
||||||
pGC->clientClip = pValue;
|
pGC->clientClip = pValue;
|
||||||
xnestGCPriv(pGC)->nClipRects = nRects;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -294,7 +292,6 @@ xnestDestroyClip(GCPtr pGC)
|
||||||
|
|
||||||
pGC->clientClipType = CT_NONE;
|
pGC->clientClipType = CT_NONE;
|
||||||
pGC->clientClip = NULL;
|
pGC->clientClip = NULL;
|
||||||
xnestGCPriv(pGC)->nClipRects = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -30,10 +30,10 @@ typedef struct {
|
||||||
} xnestPrivCursor;
|
} xnestPrivCursor;
|
||||||
|
|
||||||
#define xnestGetCursorPriv(pCursor, pScreen) ((xnestPrivCursor *) \
|
#define xnestGetCursorPriv(pCursor, pScreen) ((xnestPrivCursor *) \
|
||||||
dixLookupPrivate(&(pCursor)->devPrivates, CursorScreenKey(pScreen)))
|
dixLookupScreenPrivate(&(pCursor)->devPrivates, CursorScreenKey, pScreen))
|
||||||
|
|
||||||
#define xnestSetCursorPriv(pCursor, pScreen, v) \
|
#define xnestSetCursorPriv(pCursor, pScreen, v) \
|
||||||
dixSetPrivate(&(pCursor)->devPrivates, CursorScreenKey(pScreen), v)
|
dixSetScreenPrivate(&(pCursor)->devPrivates, CursorScreenKey, pScreen, v)
|
||||||
|
|
||||||
#define xnestCursor(pCursor, pScreen) \
|
#define xnestCursor(pCursor, pScreen) \
|
||||||
(xnestGetCursorPriv(pCursor, pScreen)->cursor)
|
(xnestGetCursorPriv(pCursor, pScreen)->cursor)
|
||||||
|
|
|
@ -19,7 +19,6 @@ is" without express or implied warranty.
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
XlibGC gc;
|
XlibGC gc;
|
||||||
int nClipRects;
|
|
||||||
} xnestPrivGC;
|
} xnestPrivGC;
|
||||||
|
|
||||||
extern DevPrivateKeyRec xnestGCPrivateKeyRec;
|
extern DevPrivateKeyRec xnestGCPrivateKeyRec;
|
||||||
|
|
|
@ -48,8 +48,6 @@ SOFTWARE.
|
||||||
#ifndef CMAPSTRUCT_H
|
#ifndef CMAPSTRUCT_H
|
||||||
#define CMAPSTRUCT_H 1
|
#define CMAPSTRUCT_H 1
|
||||||
|
|
||||||
#include <X11/Xarch.h>
|
|
||||||
|
|
||||||
#include "colormap.h"
|
#include "colormap.h"
|
||||||
#include "screenint.h"
|
#include "screenint.h"
|
||||||
#include "privates.h"
|
#include "privates.h"
|
||||||
|
@ -91,26 +89,15 @@ typedef struct _CMEntry
|
||||||
Bool fShared;
|
Bool fShared;
|
||||||
} Entry;
|
} Entry;
|
||||||
|
|
||||||
/*
|
/* COLORMAPs can be used for either Direct or Pseudo color. PseudoColor
|
||||||
* COLORMAPs can be used for either Direct or Pseudo color. PseudoColor
|
|
||||||
* only needs one cell table, we arbitrarily pick red. We keep track
|
* only needs one cell table, we arbitrarily pick red. We keep track
|
||||||
* of that table with freeRed, numPixelsRed, and clientPixelsRed
|
* of that table with freeRed, numPixelsRed, and clientPixelsRed */
|
||||||
*
|
|
||||||
* The padN variables are unfortunate ABI BC. See fdo bug #6924.
|
|
||||||
*/
|
|
||||||
|
|
||||||
typedef struct _ColormapRec
|
typedef struct _ColormapRec
|
||||||
{
|
{
|
||||||
VisualPtr pVisual;
|
VisualPtr pVisual;
|
||||||
short class; /* PseudoColor or DirectColor */
|
short class; /* PseudoColor or DirectColor */
|
||||||
#if defined(_LP64)
|
|
||||||
short pad0;
|
|
||||||
XID pad1;
|
|
||||||
#endif
|
|
||||||
XID mid; /* client's name for colormap */
|
XID mid; /* client's name for colormap */
|
||||||
#if defined(_LP64) && (X_BYTE_ORDER == X_LITTLE_ENDIAN)
|
|
||||||
XID pad2;
|
|
||||||
#endif
|
|
||||||
ScreenPtr pScreen; /* screen map is associated with */
|
ScreenPtr pScreen; /* screen map is associated with */
|
||||||
short flags; /* 1 = IsDefault
|
short flags; /* 1 = IsDefault
|
||||||
* 2 = AllAllocated */
|
* 2 = AllAllocated */
|
||||||
|
|
|
@ -63,8 +63,8 @@ struct _DeviceIntRec;
|
||||||
typedef struct _Cursor *CursorPtr;
|
typedef struct _Cursor *CursorPtr;
|
||||||
typedef struct _CursorMetric *CursorMetricPtr;
|
typedef struct _CursorMetric *CursorMetricPtr;
|
||||||
|
|
||||||
extern _X_EXPORT DevPrivateKeyRec cursorScreenDevPriv[MAXSCREENS];
|
extern _X_EXPORT DevScreenPrivateKeyRec cursorScreenDevPriv;
|
||||||
#define CursorScreenKey(pScreen) (cursorScreenDevPriv + (pScreen)->myNum)
|
#define CursorScreenKey (&cursorScreenDevPriv)
|
||||||
|
|
||||||
extern _X_EXPORT CursorPtr rootCursor;
|
extern _X_EXPORT CursorPtr rootCursor;
|
||||||
|
|
||||||
|
|
|
@ -209,9 +209,6 @@
|
||||||
*/
|
*/
|
||||||
#undef HAVE_SYS_DIR_H
|
#undef HAVE_SYS_DIR_H
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/io.h> header file. */
|
|
||||||
#undef HAVE_SYS_IO_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
|
/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
|
||||||
*/
|
*/
|
||||||
#undef HAVE_SYS_NDIR_H
|
#undef HAVE_SYS_NDIR_H
|
||||||
|
@ -225,9 +222,6 @@
|
||||||
/* Define to 1 if you have the <sys/utsname.h> header file. */
|
/* Define to 1 if you have the <sys/utsname.h> header file. */
|
||||||
#undef HAVE_SYS_UTSNAME_H
|
#undef HAVE_SYS_UTSNAME_H
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/vm86.h> header file. */
|
|
||||||
#undef HAVE_SYS_VM86_H
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <tslib.h> header file. */
|
/* Define to 1 if you have the <tslib.h> header file. */
|
||||||
#undef HAVE_TSLIB_H
|
#undef HAVE_TSLIB_H
|
||||||
|
|
||||||
|
|
|
@ -136,9 +136,6 @@
|
||||||
/* Use SIGIO handlers for input device events by default */
|
/* Use SIGIO handlers for input device events by default */
|
||||||
#undef USE_SIGIO_BY_DEFAULT
|
#undef USE_SIGIO_BY_DEFAULT
|
||||||
|
|
||||||
/* Support PC98 */
|
|
||||||
#undef SUPPORT_PC98
|
|
||||||
|
|
||||||
/* Build with libdrm support */
|
/* Build with libdrm support */
|
||||||
#undef WITH_LIBDRM
|
#undef WITH_LIBDRM
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue