[xserver-commit] xserver/hw/xnest Color.c,1.4,1.4.2.1 Color.h,1.1.1.2,1.1.1.2.10.1 Cursor.c,1.4,1.4.2.1 Display.c,3.5,3.5.2.1 Display.h,1.6,1.6.10.1 Events.c,1.3,1.3.2.1 Events.h,1.1.1.2,1.1.1.2.10.1 Font.c,3.7,3.7.2.1 GC.c,3.7,3.7.2.1 GCOps.c,3.6,3.6.2.1 GCOps.h,1.1.1.2,1.1.1.2.10.1 Keyboard.h,1.1.1.2,1.1.1.2.10.1 Screen.c,3.12,3.12.2.1 Screen.h,1.1.1.2,1.1.1.2.10.1 Visual.c,1.2,1.2.2.1 Visual.h,1.1.1.2,1.1.1.2.10.1 Window.c,3.8,3.8.2.1 XNCursor.h,1.2,1.2.4.1 XNFont.h,1.1.1.2,1.1.1.2.10.1 XNGC.h,1.1.1.2,1.1.1.2.10.1 XNPixmap.h,1.4,1.4.2.1 XNWindow.h,1.2,1.2.2.1
Keith Packard
xserver-commit@pdx.freedesktop.org
Wed, 29 Oct 2003 08:27:24 -0800
Committed by: keithp
Update of /cvs/xserver/xserver/hw/xnest
In directory pdx:/tmp/cvs-serv23305/hw/xnest
Modified Files:
Tag: xfixes_2_branch
Color.c Color.h Cursor.c Display.c Display.h Events.c Events.h
Font.c GC.c GCOps.c GCOps.h Keyboard.h Screen.c Screen.h
Visual.c Visual.h Window.c XNCursor.h XNFont.h XNGC.h
XNPixmap.h XNWindow.h
Log Message:
* Xext/bigreq.c: (BigReqExtensionInit):
* Xext/mitmisc.c: (MITMiscExtensionInit):
* Xext/saver.c: (ScreenSaverExtensionInit):
* Xext/shm.c: (ShmExtensionInit), (ShmRegisterFuncs),
(ShmSetPixmapFormat):
* Xext/shmint.h:
* Xext/sleepuntil.c: (ClientSleepUntil):
* Xext/sleepuntil.h:
* Xext/sync.c: (SyncCreateSystemCounter), (SyncExtensionInit):
* Xext/syncint.h:
* Xext/xcmisc.c: (XCMiscExtensionInit):
* Xext/xext.h:
* Xext/xres.c:
* Xext/xtest.c: (XTestExtensionInit):
* Xext/xtest1di.c: (XTestExtension1Init):
* Xext/xvmc.c: (XvMCFindXvImage):
* Xext/xvmcext.h:
* configure.ac:
* dix/dispatch.c:
* dix/extension.c: (CloseDownExtensions):
* dix/property.c: (NullPropertyReply):
* dix/xpstubs.c: (XpClientIsBitmapClient), (XpClientIsPrintClient),
(XprintOptions):
* hw/kdrive/fbdev/fbdev.c: (fbdevUnmapFramebuffer),
(fbdevRandRSetConfig):
* hw/kdrive/fbdev/fbdev.h:
* hw/kdrive/linux/agp.c: (GARTInit):
* hw/kdrive/linux/bus.c:
* hw/kdrive/linux/keyboard.c: (readKernelMapping):
* hw/kdrive/linux/linux.c: (LinuxInit):
* hw/kdrive/linux/mouse.c:
* hw/kdrive/linux/ms.c:
* hw/kdrive/linux/ps2.c:
* hw/kdrive/mach64/mach64.c:
* hw/kdrive/mach64/mach64draw.c:
* hw/kdrive/mga/mga.c:
* hw/kdrive/mga/mgadraw.c: (mgaPrepareSolid), (mgaPrepareCopy):
* hw/kdrive/nvidia/nvidia.c: (nvidiaLockUnlock):
* hw/kdrive/nvidia/nvidia.h:
* hw/kdrive/nvidia/nvidiadraw.c: (nvidiaPrepareSolid),
(nvidiaPrepareCopy), (nvidiaDrawInit), (nvidiaDrawEnable):
* hw/kdrive/r128/r128.c: (r128ScreenInit), (r128Preserve),
(r128DPMS):
* hw/kdrive/r128/r128draw.c: (r128WaitAvail), (r128Setup),
(r128DrawInit):
* hw/kdrive/r128/r128stub.c:
* hw/kdrive/smi/smi.c: (smiRandRSetConfig), (smiPreserve),
(smiDPMS), (smiRestore):
* hw/kdrive/smi/smi.h:
* hw/kdrive/smi/smidraw.c: (smiPrepareSolid), (smiPrepareCopy),
(smiDrawInit):
* hw/kdrive/smi/smistub.c:
* hw/kdrive/src/kaa.c:
* hw/kdrive/src/kcmap.c:
* hw/kdrive/src/kcurscol.c:
* hw/kdrive/src/kdrive.c: (KdCreateScreenResources):
* hw/kdrive/src/kdrive.h:
* hw/kdrive/src/kinput.c:
* hw/kdrive/src/knoop.c:
* hw/kdrive/src/vga.c:
* hw/kdrive/src/vga.h:
* hw/kdrive/vesa/vesa.h:
* hw/xnest/Color.c: (xnestCreateColormap), (xnestDestroyColormap),
(xnestCountInstalledColormapWindows),
(xnestGetInstalledColormapWindows),
(xnestSameInstalledColormapWindows),
(xnestSetInstalledColormapWindows),
(xnestSetScreenSaverColormapWindow), (xnestDirectInstallColormaps),
(xnestDirectUninstallColormaps), (xnestInstallColormap),
(xnestUninstallColormap), (xnestListInstalledColormaps),
(xnestStoreColors), (xnestResolveColor),
(xnestCreateDefaultColormap):
* hw/xnest/Color.h:
* hw/xnest/Cursor.c: (xnestConstrainCursor), (xnestCursorLimits),
(xnestDisplayCursor), (xnestRealizeCursor), (xnestUnrealizeCursor),
(xnestRecolorCursor), (xnestSetCursorPosition):
* hw/xnest/Display.c: (xnestOpenDisplay):
* hw/xnest/Display.h:
* hw/xnest/Events.c: (xnestExposurePredicate),
(xnestNotExposurePredicate), (xnestCollectExposures),
(xnestCollectEvents):
* hw/xnest/Events.h:
* hw/xnest/Font.c: (xnestRealizeFont), (xnestUnrealizeFont):
* hw/xnest/GC.c: (xnestValidateGC), (xnestChangeGC), (xnestCopyGC),
(xnestDestroyGC), (xnestDestroyClipHelper), (xnestChangeClip),
(xnestDestroyClip), (xnestCopyClip), (xnestCreateGC):
* hw/xnest/GCOps.c: (xnestFillSpans), (xnestSetSpans),
(xnestGetSpans), (xnestQueryBestSize), (xnestPutImage),
(xnestGetImage), (xnestBitBlitPredicate), (xnestBitBlitHelper),
(xnestCopyArea), (xnestCopyPlane), (xnestPolyPoint),
(xnestPolylines), (xnestPolySegment), (xnestPolyRectangle),
(xnestPolyArc), (xnestFillPolygon), (xnestPolyFillRect),
(xnestPolyFillArc), (xnestPolyText8), (xnestPolyText16),
(xnestImageText8), (xnestImageText16), (xnestImageGlyphBlt),
(xnestPolyGlyphBlt), (xnestPushPixels):
* hw/xnest/GCOps.h:
* hw/xnest/Keyboard.h:
* hw/xnest/Screen.c: (xnestScreen):
* hw/xnest/Screen.h:
* hw/xnest/Visual.c: (xnestVisual), (xnestVisualFromID):
* hw/xnest/Visual.h:
* hw/xnest/Window.c: (xnestWindowPtr):
* hw/xnest/XNCursor.h:
* hw/xnest/XNFont.h:
* hw/xnest/XNGC.h:
* hw/xnest/XNPixmap.h:
* hw/xnest/XNWindow.h:
* include/extnsionst.h:
* mi/Makefile.am:
* mi/miinitext.c:
* os/Makefile.am:
* os/connection.c: (ClientAuthorized):
* os/hpsocket.c: (set_socket_option), (unset_socket_option):
* os/xdmauth.c: (XdmCheckCookie), (XdmToID):
Prototype fixes (various)
Add GCC warnings (including -Werror. clean up your code)
Other warning fixes (unused variables, etc)
Get rid of unused extension interfaces (aux screen procs)
Make lots of functions in kdrive static
Eliminate unused code from os library
Index: Color.c
===================================================================
RCS file: /cvs/xserver/xserver/hw/xnest/Color.c,v
retrieving revision 1.4
retrieving revision 1.4.2.1
diff -u -d -r1.4 -r1.4.2.1
--- Color.c 12 Oct 2003 00:21:02 -0000 1.4
+++ Color.c 29 Oct 2003 16:26:51 -0000 1.4.2.1
@@ -30,8 +30,7 @@
static ColormapPtr InstalledMaps[MAXSCREENS];
-Bool xnestCreateColormap(pCmap)
- ColormapPtr pCmap;
+Bool xnestCreateColormap(ColormapPtr pCmap)
{
VisualPtr pVisual;
XColor *colors;
@@ -116,8 +115,7 @@
return True;
}
-void xnestDestroyColormap (pCmap)
- ColormapPtr pCmap;
+void xnestDestroyColormap (ColormapPtr pCmap)
{
XFreeColormap(xnestDisplay, xnestColormap(pCmap));
xfree(pCmap->devPriv);
@@ -126,9 +124,8 @@
#define SEARCH_PREDICATE \
(xnestWindow(pWin) != None && wColormap(pWin) == icws->cmapIDs[i])
-static int xnestCountInstalledColormapWindows(pWin, ptr)
- WindowPtr pWin;
- pointer ptr;
+static int
+xnestCountInstalledColormapWindows(WindowPtr pWin, pointer ptr)
{
xnestInstalledColormapWindows *icws = (xnestInstalledColormapWindows *)ptr;
int i;
@@ -142,9 +139,8 @@
return WT_WALKCHILDREN;
}
-static int xnestGetInstalledColormapWindows(pWin, ptr)
- WindowPtr pWin;
- pointer ptr;
+static int
+xnestGetInstalledColormapWindows(WindowPtr pWin, pointer ptr)
{
xnestInstalledColormapWindows *icws = (xnestInstalledColormapWindows *)ptr;
int i;
@@ -161,9 +157,8 @@
static Window *xnestOldInstalledColormapWindows = NULL;
static int xnestNumOldInstalledColormapWindows = 0;
-static Bool xnestSameInstalledColormapWindows(windows, numWindows)
- Window *windows;
- int numWindows;
+static Bool
+xnestSameInstalledColormapWindows(Window *windows, int numWindows)
{
if (xnestNumOldInstalledColormapWindows != numWindows)
return False;
@@ -181,8 +176,7 @@
return True;
}
-void xnestSetInstalledColormapWindows(pScreen)
- ScreenPtr pScreen;
+void xnestSetInstalledColormapWindows(ScreenPtr pScreen)
{
xnestInstalledColormapWindows icws;
int numWindows;
@@ -260,8 +254,7 @@
if (icws.windows) xfree(icws.windows);
}
-void xnestSetScreenSaverColormapWindow(pScreen)
- ScreenPtr pScreen;
+void xnestSetScreenSaverColormapWindow(ScreenPtr pScreen)
{
if (xnestOldInstalledColormapWindows)
xfree(xnestOldInstalledColormapWindows);
@@ -286,8 +279,7 @@
xnestDirectUninstallColormaps(pScreen);
}
-void xnestDirectInstallColormaps(pScreen)
- ScreenPtr pScreen;
+void xnestDirectInstallColormaps(ScreenPtr pScreen)
{
int i, n;
Colormap pCmapIDs[MAXCMAPS];
@@ -305,8 +297,7 @@
}
}
-void xnestDirectUninstallColormaps(pScreen)
- ScreenPtr pScreen;
+void xnestDirectUninstallColormaps(ScreenPtr pScreen)
{
int i, n;
Colormap pCmapIDs[MAXCMAPS];
@@ -324,8 +315,7 @@
}
}
-void xnestInstallColormap(pCmap)
- ColormapPtr pCmap;
+void xnestInstallColormap(ColormapPtr pCmap)
{
int index;
ColormapPtr pOldCmap;
@@ -349,8 +339,7 @@
}
}
-void xnestUninstallColormap(pCmap)
- ColormapPtr pCmap;
+void xnestUninstallColormap(ColormapPtr pCmap)
{
int index;
ColormapPtr pCurCmap;
@@ -371,9 +360,8 @@
static Bool xnestInstalledDefaultColormap = False;
-int xnestListInstalledColormaps(pScreen, pCmapIDs)
- ScreenPtr pScreen;
- Colormap *pCmapIDs;
+int
+xnestListInstalledColormaps(ScreenPtr pScreen, Colormap *pCmapIDs)
{
if (xnestInstalledDefaultColormap) {
*pCmapIDs = InstalledMaps[pScreen->myNum]->mid;
@@ -383,10 +371,7 @@
return 0;
}
-void xnestStoreColors(pCmap, nColors, pColors)
- ColormapPtr pCmap;
- int nColors;
- xColorItem *pColors;
+void xnestStoreColors(ColormapPtr pCmap, int nColors, xColorItem *pColors)
{
if (pCmap->pVisual->class & DynamicClass)
#ifdef _XSERVER64
@@ -411,11 +396,10 @@
#endif
}
-void xnestResolveColor(pRed, pGreen, pBlue, pVisual)
- unsigned short *pRed;
- unsigned short *pGreen;
- unsigned short *pBlue;
- VisualPtr pVisual;
+void xnestResolveColor(unsigned short *pRed,
+ unsigned short *pGreen,
+ unsigned short *pBlue,
+ VisualPtr pVisual)
{
int shift;
unsigned int lim;
@@ -463,8 +447,7 @@
}
}
-Bool xnestCreateDefaultColormap(pScreen)
- ScreenPtr pScreen;
+Bool xnestCreateDefaultColormap(ScreenPtr pScreen)
{
VisualPtr pVisual;
ColormapPtr pCmap;
Index: Color.h
===================================================================
RCS file: /cvs/xserver/xserver/hw/xnest/Color.h,v
retrieving revision 1.1.1.2
retrieving revision 1.1.1.2.10.1
diff -u -d -r1.1.1.2 -r1.1.1.2.10.1
--- Color.h 16 Jan 2001 22:43:43 -0000 1.1.1.2
+++ Color.h 29 Oct 2003 16:26:51 -0000 1.1.1.2.10.1
@@ -40,17 +40,20 @@
#define xnestPixel(pixel) (pixel)
-Bool xnestCreateColormap();
-void xnestDestroyColormap ();
-void xnestSetInstalledColormapWindows();
-void xnestSetScreenSaverColormapWindow();
-void xnestDirectInstallColormaps();
-void xnestDirectUninstallColormaps();
-void xnestInstallColormap();
-void xnestUninstallColormap();
-int xnestListInstalledColormaps();
-void xnestStoreColors();
-void xnestResolveColor();
-Bool xnestCreateDefaultColormap();
+Bool xnestCreateColormap(ColormapPtr pCmap);
+void xnestDestroyColormap (ColormapPtr pCmap);
+void xnestSetInstalledColormapWindows(ScreenPtr pScreen);
+void xnestSetScreenSaverColormapWindow(ScreenPtr pScreen);
+void xnestDirectInstallColormaps(ScreenPtr pScreen);
+void xnestDirectUninstallColormaps(ScreenPtr pScreen);
+void xnestInstallColormap(ColormapPtr pCmap);
+void xnestUninstallColormap(ColormapPtr pCmap);
+int xnestListInstalledColormaps(ScreenPtr pScreen, Colormap *pCmapIDs);
+void xnestStoreColors(ColormapPtr pCmap, int nColors, xColorItem *pColors);
+void xnestResolveColor(unsigned short *pRed,
+ unsigned short *pGreen,
+ unsigned short *pBlue,
+ VisualPtr pVisual);
+Bool xnestCreateDefaultColormap(ScreenPtr pScreen);
#endif /* XNESTCOLOR_H */
Index: Cursor.c
===================================================================
RCS file: /cvs/xserver/xserver/hw/xnest/Cursor.c,v
retrieving revision 1.4
retrieving revision 1.4.2.1
diff -u -d -r1.4 -r1.4.2.1
--- Cursor.c 12 Oct 2003 00:21:02 -0000 1.4
+++ Cursor.c 29 Oct 2003 16:26:51 -0000 1.4.2.1
@@ -31,9 +31,7 @@
#include "Keyboard.h"
#include "Args.h"
-void xnestConstrainCursor(pScreen, pBox)
- ScreenPtr pScreen;
- BoxPtr pBox;
+void xnestConstrainCursor(ScreenPtr pScreen, BoxPtr pBox)
{
#ifdef _XSERVER64
Window64 wroot;
@@ -69,18 +67,15 @@
}
}
-void xnestCursorLimits(pScreen, pCursor, pHotBox, pTopLeftBox)
- ScreenPtr pScreen;
- CursorPtr pCursor;
- BoxPtr pHotBox;
- BoxPtr pTopLeftBox;
+void xnestCursorLimits(ScreenPtr pScreen,
+ CursorPtr pCursor,
+ BoxPtr pHotBox,
+ BoxPtr pTopLeftBox)
{
*pTopLeftBox = *pHotBox;
}
-Bool xnestDisplayCursor(pScreen, pCursor)
- ScreenPtr pScreen;
- CursorPtr pCursor;
+Bool xnestDisplayCursor(ScreenPtr pScreen, CursorPtr pCursor)
{
XDefineCursor(xnestDisplay,
xnestDefaultWindows[pScreen->myNum],
@@ -88,9 +83,7 @@
return True;
}
-Bool xnestRealizeCursor(pScreen, pCursor)
- ScreenPtr pScreen;
- CursorPtr pCursor;
+Bool xnestRealizeCursor(ScreenPtr pScreen, CursorPtr pCursor)
{
XImage *ximage;
Pixmap source, mask;
@@ -169,19 +162,14 @@
return True;
}
-Bool xnestUnrealizeCursor(pScreen, pCursor)
- ScreenPtr pScreen;
- CursorPtr pCursor;
+Bool xnestUnrealizeCursor(ScreenPtr pScreen, CursorPtr pCursor)
{
XFreeCursor(xnestDisplay, xnestCursor(pCursor, pScreen));
xfree(xnestCursorPriv(pCursor, pScreen));
return True;
}
-void xnestRecolorCursor(pScreen, pCursor, displayed)
- ScreenPtr pScreen;
- CursorPtr pCursor;
- Bool displayed;
+void xnestRecolorCursor(ScreenPtr pScreen, CursorPtr pCursor, Bool displayed)
{
XColor fg_color, bg_color;
@@ -198,10 +186,7 @@
&fg_color, &bg_color);
}
-Bool xnestSetCursorPosition(pScreen, x, y, generateEvent)
- ScreenPtr pScreen;
- int x, y;
- Bool generateEvent;
+Bool xnestSetCursorPosition(ScreenPtr pScreen, int x, int y, Bool generateEvent)
{
int i;
Index: Display.c
===================================================================
RCS file: /cvs/xserver/xserver/hw/xnest/Display.c,v
retrieving revision 3.5
retrieving revision 3.5.2.1
diff -u -d -r3.5 -r3.5.2.1
--- Display.c 12 Oct 2003 00:21:02 -0000 3.5
+++ Display.c 29 Oct 2003 16:26:51 -0000 3.5.2.1
@@ -47,15 +47,13 @@
XlibGC xnestBitmapGC;
Window xnestConfineWindow;
unsigned long xnestEventMask;
+extern Window xnestParentWindow;
-void xnestOpenDisplay(argc, argv)
- int argc;
- char *argv[];
+void xnestOpenDisplay(int argc, char *argv[])
{
XVisualInfo vi;
long mask;
int i, j;
- extern Window xnestParentWindow;
if (!xnestDoFullGeneration) return;
Index: Display.h
===================================================================
RCS file: /cvs/xserver/xserver/hw/xnest/Display.h,v
retrieving revision 1.6
retrieving revision 1.6.10.1
diff -u -d -r1.6 -r1.6.10.1
--- Display.h 17 Jan 2001 22:36:55 -0000 1.6
+++ Display.h 29 Oct 2003 16:26:51 -0000 1.6.10.1
@@ -41,7 +41,7 @@
extern Window xnestConfineWindow;
extern unsigned long xnestEventMask;
-void xnestOpenDisplay();
-void xnestCloseDisplay();
+void xnestOpenDisplay(int argc, char *argv[]);
+void xnestCloseDisplay(void);
#endif /* XNESTCOMMON_H */
Index: Events.c
===================================================================
RCS file: /cvs/xserver/xserver/hw/xnest/Events.c,v
retrieving revision 1.3
retrieving revision 1.3.2.1
diff -u -d -r1.3 -r1.3.2.1
--- Events.c 12 Oct 2003 00:21:02 -0000 1.3
+++ Events.c 29 Oct 2003 16:26:51 -0000 1.3.2.1
@@ -46,28 +46,20 @@
return GetTimeInMillis() - lastEventTime;
}
-void SetTimeSinceLastInputEvent()
-{
- lastEventTime = GetTimeInMillis();
-}
-
-static Bool xnestExposurePredicate(display, event, args)
- Display *display;
- XEvent *event;
- char *args;
+static Bool
+xnestExposurePredicate(Display *display, XEvent *event, char *args)
{
return (event->type == Expose || event->type == ProcessedExpose);
}
-static Bool xnestNotExposurePredicate(display, event, args)
- Display *display;
- XEvent *event;
- char *args;
+static Bool
+xnestNotExposurePredicate(Display *display, XEvent *event, char *args)
{
return !xnestExposurePredicate(display, event, args);
}
-void xnestCollectExposures()
+void
+xnestCollectExposures(void)
{
XEvent X;
WindowPtr pWin;
@@ -90,12 +82,12 @@
}
}
-void xnestCollectEvents()
+void
+xnestCollectEvents(void)
{
XEvent X;
xEvent x;
ScreenPtr pScreen;
- extern Window xnestParentWindow;
while (XCheckIfEvent(xnestDisplay, &X, xnestNotExposurePredicate, NULL)) {
switch (X.type) {
Index: Events.h
===================================================================
RCS file: /cvs/xserver/xserver/hw/xnest/Events.h,v
retrieving revision 1.1.1.2
retrieving revision 1.1.1.2.10.1
diff -u -d -r1.1.1.2 -r1.1.1.2.10.1
--- Events.h 16 Jan 2001 22:43:44 -0000 1.1.1.2
+++ Events.h 29 Oct 2003 16:26:51 -0000 1.1.1.2.10.1
@@ -22,7 +22,10 @@
extern CARD32 lastEventTime;
-void xnestCollectExposures();
-void xnestCollectEvents();
+void
+xnestCollectExposures(void);
+
+void
+xnestCollectEvents(void);
#endif /* XNESTEVENTS_H */
Index: Font.c
===================================================================
RCS file: /cvs/xserver/xserver/hw/xnest/Font.c,v
retrieving revision 3.7
retrieving revision 3.7.2.1
diff -u -d -r3.7 -r3.7.2.1
--- Font.c 12 Oct 2003 00:21:02 -0000 3.7
+++ Font.c 29 Oct 2003 16:26:51 -0000 3.7.2.1
@@ -28,9 +28,7 @@
int xnestFontPrivateIndex;
-Bool xnestRealizeFont(pScreen, pFont)
- ScreenPtr pScreen;
- FontPtr pFont;
+Bool xnestRealizeFont(ScreenPtr pScreen, FontPtr pFont)
{
pointer priv;
Atom name_atom, value_atom;
@@ -73,9 +71,7 @@
}
-Bool xnestUnrealizeFont(pScreen, pFont)
- ScreenPtr pScreen;
- FontPtr pFont;
+Bool xnestUnrealizeFont(ScreenPtr pScreen, FontPtr pFont)
{
if (xnestFontPriv(pFont)) {
if (xnestFontStruct(pFont))
Index: GC.c
===================================================================
RCS file: /cvs/xserver/xserver/hw/xnest/GC.c,v
retrieving revision 3.7
retrieving revision 3.7.2.1
diff -u -d -r3.7 -r3.7.2.1
--- GC.c 12 Oct 2003 00:21:02 -0000 3.7
+++ GC.c 29 Oct 2003 16:26:51 -0000 3.7.2.1
@@ -33,70 +33,15 @@
int xnestGCPrivateIndex;
-static GCFuncs xnestFuncs = {
- xnestValidateGC,
- xnestChangeGC,
- xnestCopyGC,
- xnestDestroyGC,
- xnestChangeClip,
- xnestDestroyClip,
- xnestCopyClip,
-};
-
-static GCOps xnestOps = {
- xnestFillSpans,
- xnestSetSpans,
- xnestPutImage,
- xnestCopyArea,
- xnestCopyPlane,
- xnestPolyPoint,
- xnestPolylines,
- xnestPolySegment,
- xnestPolyRectangle,
- xnestPolyArc,
- xnestFillPolygon,
- xnestPolyFillRect,
- xnestPolyFillArc,
- xnestPolyText8,
- xnestPolyText16,
- xnestImageText8,
- xnestImageText16,
- xnestImageGlyphBlt,
- xnestPolyGlyphBlt,
- xnestPushPixels
-};
-
-Bool xnestCreateGC(pGC)
- GCPtr pGC;
-{
- pGC->clientClipType = CT_NONE;
- pGC->clientClip = NULL;
-
- pGC->funcs = &xnestFuncs;
- pGC->ops = &xnestOps;
-
- pGC->miTranslate = 1;
-
- xnestGCPriv(pGC)->gc = XCreateGC(xnestDisplay,
- xnestDefaultDrawables[pGC->depth],
- 0L, NULL);
- xnestGCPriv(pGC)->nClipRects = 0;
-
- return True;
-}
-
-void xnestValidateGC(pGC, changes, pDrawable)
- GCPtr pGC;
- unsigned long changes;
- DrawablePtr pDrawable;
+static void
+xnestValidateGC(GCPtr pGC, unsigned long changes, DrawablePtr pDrawable)
{
pGC->lastWinOrg.x = pDrawable->x;
pGC->lastWinOrg.y = pDrawable->y;
}
-void xnestChangeGC(pGC, mask)
- GC *pGC;
- unsigned long mask;
+static void
+xnestChangeGC(GCPtr pGC, unsigned long mask)
{
XGCValues values;
@@ -180,25 +125,35 @@
XChangeGC(xnestDisplay, xnestGC(pGC), mask, &values);
}
-void xnestCopyGC(pGCSrc, mask, pGCDst)
- GCPtr pGCSrc;
- unsigned long mask;
- GCPtr pGCDst;
+static void
+xnestCopyGC(GCPtr pGCSrc, unsigned long mask, GCPtr pGCDst)
{
XCopyGC(xnestDisplay, xnestGC(pGCSrc), mask, xnestGC(pGCDst));
}
-void xnestDestroyGC(pGC)
- GC *pGC;
+static void
+xnestDestroyGC(GCPtr pGC)
{
XFreeGC(xnestDisplay, xnestGC(pGC));
}
-void xnestChangeClip(pGC, type, pValue, nRects)
- GCPtr pGC;
- int type;
- pointer pValue;
- int nRects;
+static void
+xnestDestroyClipHelper(GCPtr pGC)
+{
+ switch (pGC->clientClipType)
+ {
+ default:
+ case CT_NONE:
+ break;
+
+ case CT_REGION:
+ REGION_DESTROY(pGC->pScreen, pGC->clientClip);
+ break;
+ }
+}
+
+static void
+xnestChangeClip(GCPtr pGC, int type, pointer pValue, int nRects)
{
int i, size;
BoxPtr pBox;
@@ -294,8 +249,7 @@
xnestGCPriv(pGC)->nClipRects = nRects;
}
-void xnestDestroyClip(pGC)
- GCPtr pGC;
+static void xnestDestroyClip(GCPtr pGC)
{
xnestDestroyClipHelper(pGC);
@@ -306,24 +260,8 @@
xnestGCPriv(pGC)->nClipRects = 0;
}
-void xnestDestroyClipHelper(pGC)
- GCPtr pGC;
-{
- switch (pGC->clientClipType)
- {
- default:
- case CT_NONE:
- break;
-
- case CT_REGION:
- REGION_DESTROY(pGC->pScreen, pGC->clientClip);
- break;
- }
-}
-
-void xnestCopyClip(pGCDst, pGCSrc)
- GCPtr pGCSrc;
- GCPtr pGCDst;
+static void
+xnestCopyClip(GCPtr pGCDst, GCPtr pGCSrc)
{
RegionPtr pRgn;
@@ -341,3 +279,54 @@
break;
}
}
+
+static GCFuncs xnestFuncs = {
+ xnestValidateGC,
+ xnestChangeGC,
+ xnestCopyGC,
+ xnestDestroyGC,
+ xnestChangeClip,
+ xnestDestroyClip,
+ xnestCopyClip,
+};
+
+static GCOps xnestOps = {
+ xnestFillSpans,
+ xnestSetSpans,
+ xnestPutImage,
+ xnestCopyArea,
+ xnestCopyPlane,
+ xnestPolyPoint,
+ xnestPolylines,
+ xnestPolySegment,
+ xnestPolyRectangle,
+ xnestPolyArc,
+ xnestFillPolygon,
+ xnestPolyFillRect,
+ xnestPolyFillArc,
+ xnestPolyText8,
+ xnestPolyText16,
+ xnestImageText8,
+ xnestImageText16,
+ xnestImageGlyphBlt,
+ xnestPolyGlyphBlt,
+ xnestPushPixels
+};
+
+Bool xnestCreateGC(GCPtr pGC)
+{
+ pGC->clientClipType = CT_NONE;
+ pGC->clientClip = NULL;
+
+ pGC->funcs = &xnestFuncs;
+ pGC->ops = &xnestOps;
+
+ pGC->miTranslate = 1;
+
+ xnestGCPriv(pGC)->gc = XCreateGC(xnestDisplay,
+ xnestDefaultDrawables[pGC->depth],
+ 0L, NULL);
+ xnestGCPriv(pGC)->nClipRects = 0;
+
+ return True;
+}
Index: GCOps.c
===================================================================
RCS file: /cvs/xserver/xserver/hw/xnest/GCOps.c,v
retrieving revision 3.6
retrieving revision 3.6.2.1
diff -u -d -r3.6 -r3.6.2.1
--- GCOps.c 12 Oct 2003 00:21:02 -0000 3.6
+++ GCOps.c 29 Oct 2003 16:26:51 -0000 3.6.2.1
@@ -33,45 +33,22 @@
#include "Drawable.h"
#include "Visual.h"
-void xnestFillSpans(pDrawable, pGC, nSpans, pPoints, pWidths, fSorted)
- DrawablePtr pDrawable;
- GCPtr pGC;
- int nSpans;
- xPoint *pPoints;
- int *pWidths;
- int fSorted;
+void xnestFillSpans(DrawablePtr pDrawable, GCPtr pGC, int nSpans, xPoint *pPoints, int *pWidths, int fSorted)
{
ErrorF("xnest warning: function xnestFillSpans not implemented\n");
}
-void xnestSetSpans(pDrawable, pGC, pSrc, pPoints, pWidths, nSpans, fSorted)
- DrawablePtr pDrawable;
- GCPtr pGC;
- unsigned char * pSrc;
- xPoint *pPoints;
- int *pWidths;
- int nSpans;
- int fSorted;
+void xnestSetSpans(DrawablePtr pDrawable, GCPtr pGC, pSrc, xPoint *pPoints, int *pWidths, int nSpans, int fSorted)
{
ErrorF("xnest warning: function xnestSetSpans not implemented\n");
}
-void xnestGetSpans(pDrawable, maxWidth, pPoints, pWidths, nSpans, pBuffer)
- DrawablePtr pDrawable;
- int maxWidth;
- xPoint *pPoints;
- int *pWidths;
- int nSpans;
- int *pBuffer;
+void xnestGetSpans(pDrawable, maxWidth, xPoint *pPoints, int *pWidths, int nSpans, int *pBuffer)
{
ErrorF("xnest warning: function xnestGetSpans not implemented\n");
}
-void xnestQueryBestSize(class, pWidth, pHeight, pScreen)
- int class;
- short *pWidth;
- short *pHeight;
- ScreenPtr pScreen;
+void xnestQueryBestSize(int class, short *pWidth, short *pHeight, ScreenPtr pScreen)
{
unsigned int width, height;
@@ -86,13 +63,9 @@
*pHeight = height;
}
-void xnestPutImage(pDrawable, pGC, depth, x, y, w, h, leftPad, format, pImage)
- DrawablePtr pDrawable;
- GCPtr pGC;
- int depth, x, y, w, h;
- int leftPad;
- unsigned int format;
- unsigned char *pImage;
+void xnestPutImage(DrawablePtr pDrawable, GCPtr pGC,
+ int depth, int x, int y, int w, int h,
+ int leftPad, unsigned int format, unsigned char *pImage)
{
XImage *ximage;
@@ -109,12 +82,9 @@
}
}
-void xnestGetImage(pDrawable, x, y, w, h, format, planeMask, pImage)
- DrawablePtr pDrawable;
- int x, y, w, h;
- unsigned int format;
- unsigned long planeMask;
- unsigned char *pImage;
+void xnestGetImage(DrawablePtr pDrawable, int x, int y, int w, int h,
+ unsigned int format, unsigned long planeMask,
+ unsigned char *pImage)
{
XImage *ximage;
int length;
@@ -131,16 +101,12 @@
}
}
-static Bool xnestBitBlitPredicate(display, event, args)
- Display *display;
- XEvent *event;
- char *args;
+static Bool xnestBitBlitPredicate(Display *display, XEvent *event, char *args)
{
return (event->type == GraphicsExpose || event->type == NoExpose);
}
-RegionPtr xnestBitBlitHelper(pGC)
- GC *pGC;
+RegionPtr xnestBitBlitHelper(GCPtr pGC)
{
if (!pGC->graphicsExposures)
return NullRegion;
@@ -181,14 +147,9 @@
}
}
-RegionPtr xnestCopyArea(pSrcDrawable, pDstDrawable,
- pGC, srcx, srcy, width, height, dstx, dsty)
- DrawablePtr pSrcDrawable;
- DrawablePtr pDstDrawable;
- GC *pGC;
- int srcx, srcy;
- int width, height;
- int dstx, dsty;
+RegionPtr xnestCopyArea(DrawablePtr pSrcDrawable, DrawablePtr pDdstDrawable,
+ GCPtr pGC, int srcx, int srcy, int width, int height,
+ int dstx, int dsty)
{
XCopyArea(xnestDisplay,
xnestDrawable(pSrcDrawable), xnestDrawable(pDstDrawable),
@@ -197,15 +158,9 @@
return xnestBitBlitHelper(pGC);
}
-RegionPtr xnestCopyPlane(pSrcDrawable, pDstDrawable,
- pGC, srcx, srcy, width, height, dstx, dsty, plane)
- DrawablePtr pSrcDrawable;
- DrawablePtr pDstDrawable;
- GC *pGC;
- int srcx, srcy;
- int width, height;
- int dstx, dsty;
- unsigned long plane;
+RegionPtr xnestCopyPlane(DrawablePtr pSrcDrawable, DrawablePtr pDdstDrawable,
+ GCPtr pGC,int srcx, int srcy, int width, int height,
+ int dstx, int dsty, unsigned long plane)
{
XCopyPlane(xnestDisplay,
xnestDrawable(pSrcDrawable), xnestDrawable(pDstDrawable),
@@ -214,96 +169,61 @@
return xnestBitBlitHelper(pGC);
}
-void xnestPolyPoint(pDrawable, pGC, mode, nPoints, pPoints)
- DrawablePtr pDrawable;
- GCPtr pGC;
- int mode;
- int nPoints;
- XPoint *pPoints;
+void xnestPolyPoint(DrawablePtr pDrawable, GCPtr pGC, int mode, int nPoints, xPoint *pPoints)
{
XDrawPoints(xnestDisplay, xnestDrawable(pDrawable), xnestGC(pGC),
- pPoints, nPoints, mode);
+ xPoint *pPoints, nPoints, mode);
}
-void xnestPolylines(pDrawable, pGC, mode, nPoints, pPoints)
- DrawablePtr pDrawable;
- GCPtr pGC;
- int mode;
- int nPoints;
- XPoint *pPoints;
+void xnestPolylines(DrawablePtr pDrawable, GCPtr pGC, int mode,
+ int nPoints, xPoint *pPoints)
{
XDrawLines(xnestDisplay, xnestDrawable(pDrawable), xnestGC(pGC),
- pPoints, nPoints, mode);
+ xPoint *pPoints, nPoints, mode);
}
-void xnestPolySegment(pDrawable, pGC, nSegments, pSegments)
- DrawablePtr pDrawable;
- GCPtr pGC;
- int nSegments;
- XSegment *pSegments;
+void xnestPolySegment(DrawablePtr pDrawable, GCPtr pGC, int nSegments,
+ xSegment *pSegments)
{
XDrawSegments(xnestDisplay, xnestDrawable(pDrawable), xnestGC(pGC),
- pSegments, nSegments);
+ (XSegment *) pSegments, nSegments);
}
-void xnestPolyRectangle(pDrawable, pGC, nRectangles, pRectangles)
- DrawablePtr pDrawable;
- GCPtr pGC;
- int nRectangles;
- XRectangle *pRectangles;
+void xnestPolyRectangle(DrawablePtr pDrawable, GCPtr pGC,
+ int nRectangles, xRectangle *pRectangles)
{
XDrawRectangles(xnestDisplay, xnestDrawable(pDrawable), xnestGC(pGC),
- pRectangles, nRectangles);
+ (XRectangle *) pRectangles, nRectangles);
}
-void xnestPolyArc(pDrawable, pGC, nArcs, pArcs)
- DrawablePtr pDrawable;
- GCPtr pGC;
- int nArcs;
- XArc *pArcs;
+void xnestPolyArc(DrawablePtr pDrawable, GCPtr pGC, int nArcs, xArc *pArcs)
{
XDrawArcs(xnestDisplay, xnestDrawable(pDrawable), xnestGC(pGC),
- pArcs, nArcs);
+ (XArc *) pArcs, nArcs);
}
-void xnestFillPolygon(pDrawable, pGC, shape, mode, nPoints, pPoints)
- DrawablePtr pDrawable;
- GCPtr pGC;
- int shape;
- int mode;
- int nPoints;
- XPoint *pPoints;
+void xnestFillPolygon(DrawablePtr pDrawable, GCPtr pGC,
+ int shape, int mode, int nPoints, xPoint *pPoints)
{
XFillPolygon(xnestDisplay, xnestDrawable(pDrawable), xnestGC(pGC),
- pPoints, nPoints, shape, mode);
+ (XPoint *) pPoints, nPoints, shape, mode);
}
-void xnestPolyFillRect(pDrawable, pGC, nRectangles, pRectangles)
- DrawablePtr pDrawable;
- GCPtr pGC;
- int nRectangles;
- XRectangle *pRectangles;
+void xnestPolyFillRect(DrawablePtr pDrawable, GCPtr pGC,
+ int nRectangles, xRectangle *pRectangles)
{
XFillRectangles(xnestDisplay, xnestDrawable(pDrawable), xnestGC(pGC),
- pRectangles, nRectangles);
+ (XRectangle *) pRectangles, nRectangles);
}
-void xnestPolyFillArc(pDrawable, pGC, nArcs, pArcs)
- DrawablePtr pDrawable;
- GCPtr pGC;
- int nArcs;
- XArc *pArcs;
+void xnestPolyFillArc(DrawablePtr pDrawable, GCPtr pGC, int nArcs, xArc *pArcs)
{
XFillArcs(xnestDisplay, xnestDrawable(pDrawable), xnestGC(pGC),
- pArcs, nArcs);
+ (XArc *) pArcs, nArcs);
}
-int xnestPolyText8(pDrawable, pGC, x, y, count, string)
- DrawablePtr pDrawable;
- GCPtr pGC;
- int x, y;
- int count;
- char *string;
+int xnestPolyText8(DrawablePtr pDrawable, GCPtr pGC,
+ int x, int y, int count, char *string)
{
int width;
@@ -315,73 +235,49 @@
return width + x;
}
-int xnestPolyText16(pDrawable, pGC, x, y, count, string)
- DrawablePtr pDrawable;
- GCPtr pGC;
- int x, y;
- int count;
- XChar2b *string;
+int xnestPolyText16(DrawablePtr pDrawable, GCPtr pGC,
+ int x, int y, int count, char *string)
{
int width;
XDrawString16(xnestDisplay, xnestDrawable(pDrawable), xnestGC(pGC),
- x, y, string, count);
+ x, y, (XChar2b *) string, count);
width = XTextWidth16(xnestFontStruct(pGC->font), string, count);
return width + x;
}
-void xnestImageText8(pDrawable, pGC, x, y, count, string)
- DrawablePtr pDrawable;
- GCPtr pGC;
- int x, y;
- int count;
- char *string;
+void xnestImageText8(DrawablePtr pDrawable, GCPtr pGC,
+ int x, int y, int count, char *string)
{
XDrawImageString(xnestDisplay, xnestDrawable(pDrawable), xnestGC(pGC),
x, y, string, count);
}
-void xnestImageText16(pDrawable, pGC, x, y, count, string)
- DrawablePtr pDrawable;
- GCPtr pGC;
- int x, y;
- int count;
- XChar2b *string;
+void xnestImageText16(DrawablePtr pDrawable, GCPtr pGC,
+ int x, int y, int count, char *string)
{
XDrawImageString16(xnestDisplay, xnestDrawable(pDrawable), xnestGC(pGC),
- x, y, string, count);
+ x, y, (XChar2b *) string, count);
}
-void xnestImageGlyphBlt(pDrawable, pGC, x, y, nGlyphs, pCharInfo, pGlyphBase)
- DrawablePtr pDrawable;
- GC pGC;
- int x, y;
- int nGlyphs;
- CharInfoPtr pCharInfo;
- char pGlyphBase;
+void xnestImageGlyphBlt(DrawablePtr pDrawable, GCPtr pGC,
+ int x, int y, int nGlyphs, CharInfoPtr *pCharInfo,
+ char *pGlyphBase)
{
ErrorF("xnest warning: function xnestImageGlyphBlt not implemented\n");
}
-void xnestPolyGlyphBlt(pDrawable, pGC, x, y, nGlyphs, pCharInfo, pGlyphBase)
- DrawablePtr pDrawable;
- GC pGC;
- int x, y;
- int nGlyphs;
- CharInfoPtr pCharInfo;
- char pGlyphBase;
+void xnestPolyGlyphBlt(DrawablePtr pDrawable, GCPtr pGC,
+ int x, int y, int nGlyphs, CharInfoPtr *pCharInfo,
+ char *pGlyphBase)
{
ErrorF("xnest warning: function xnestPolyGlyphBlt not implemented\n");
}
-void xnestPushPixels(pDrawable, pGC, pBitmap, width, height, x, y)
- DrawablePtr pDrawable;
- GC pGC;
- PixmapPtr pBitmap;
- int width, height;
- int x, y;
+void xnestPushPixels(DrawablePtr pDrawable, GCPtr pGC, PixmapPtr pBitmap,
+ int width, int height, int x, int y)
{
ErrorF("xnest warning: function xnestPushPixels not implemented\n");
}
Index: GCOps.h
===================================================================
RCS file: /cvs/xserver/xserver/hw/xnest/GCOps.h,v
retrieving revision 1.1.1.2
retrieving revision 1.1.1.2.10.1
diff -u -d -r1.1.1.2 -r1.1.1.2.10.1
--- GCOps.h 16 Jan 2001 22:43:46 -0000 1.1.1.2
+++ GCOps.h 29 Oct 2003 16:26:51 -0000 1.1.1.2.10.1
@@ -16,28 +16,72 @@
#ifndef XNESTGCOPS_H
#define XNESTGCOPS_H
-void xnestFillSpans();
-void xnestSetSpans();
-void xnestGetSpans();
-void xnestPutImage();
-void xnestGetImage();
-RegionPtr xnestCopyArea();
-RegionPtr xnestCopyPlane();
-void xnestQueryBestSize();
-void xnestPolyPoint();
-void xnestPolylines();
-void xnestPolySegment();
-void xnestPolyRectangle();
-void xnestPolyArc();
-void xnestFillPolygon();
-void xnestPolyFillRect();
-void xnestPolyFillArc();
-int xnestPolyText8();
-int xnestPolyText16();
-void xnestImageText8();
-void xnestImageText16();
-void xnestImageGlyphBlt();
-void xnestPolyGlyphBlt();
-void xnestPushPixels();
+void xnestFillSpans(DrawablePtr pDrawable, GCPtr pGC, int nSpans, xPoint *pPoints, int *pWidths, int fSorted);
+
+void xnestSetSpans(DrawablePtr pDrawable, GCPtr pGC, char *pSrc, xPoint *pPoints, int *pWidths, int nSpans, int fSorted);
+
+void xnestGetSpans(DrawablePtr pDrawable, int maxWidth, xPoint *pPoints, int *pWidths, int nSpans, int *pBuffer);
+
+void xnestQueryBestSize(int class, short *pWidth, short *pHeight, ScreenPtr pScreen);
+
+void xnestPutImage(DrawablePtr pDrawable, GCPtr pGC,
+ int depth, int x, int y, int w, int h,
+ int leftPad, unsigned int format, unsigned char *pImage);
+
+void xnestGetImage(DrawablePtr pDrawable, int x, int y, int w, int h,
+ unsigned int format, unsigned long planeMask,
+ unsigned char *pImage);
+
+
+RegionPtr xnestCopyArea(DrawablePtr pSrcDrawable, DrawablePtr pDdstDrawable,
+ GCPtr pGC, int srcx, int srcy, int width, int height,
+ int dstx, int dsty);
+
+RegionPtr xnestCopyPlane(DrawablePtr pSrcDrawable, DrawablePtr pDdstDrawable,
+ GCPtr pGC,int srcx, int srcy, int width, int height,
+ int dstx, int dsty, unsigned long plane);
+
+void xnestPolyPoint(DrawablePtr pDrawable, GCPtr pGC, int mode, int nPoints, xPoint *pPoints);
+
+void xnestPolylines(DrawablePtr pDrawable, GCPtr pGC, int mode,
+ int nPoints, xPoint *pPoints);
+
+void xnestPolySegment(DrawablePtr pDrawable, GCPtr pGC, int nSegments,
+ xSegment *pSegments);
+
+void xnestPolyRectangle(DrawablePtr pDrawable, GCPtr pGC,
+ int nRectangles, xRectangle *pRectangles);
+
+void xnestPolyArc(DrawablePtr pDrawable, GCPtr pGC, int nArcs, xArc *pArcs);
+
+void xnestFillPolygon(DrawablePtr pDrawable, GCPtr pGC,
+ int shape, int mode, int nPoints, xPoint *pPoints);
+
+void xnestPolyFillRect(DrawablePtr pDrawable, GCPtr pGC,
+ int nRectangles, xRectangle *pRectangles);
+
+void xnestPolyFillArc(DrawablePtr pDrawable, GCPtr pGC, int nArcs, xArc *pArcs);
+int xnestPolyText8(DrawablePtr pDrawable, GCPtr pGC,
+ int x, int y, int count, char *string);
+
+int xnestPolyText16(DrawablePtr pDrawable, GCPtr pGC,
+ int x, int y, int count, char *string);
+
+void xnestImageText8(DrawablePtr pDrawable, GCPtr pGC,
+ int x, int y, int count, char *string);
+
+void xnestImageText16(DrawablePtr pDrawable, GCPtr pGC,
+ int x, int y, int count, char *string);
+
+void xnestImageGlyphBlt(DrawablePtr pDrawable, GCPtr pGC,
+ int x, int y, int nGlyphs, CharInfoPtr *pCharInfo,
+ char *pGlyphBase);
+
+void xnestPolyGlyphBlt(DrawablePtr pDrawable, GCPtr pGC,
+ int x, int y, int nGlyphs, CharInfoPtr *pCharInfo,
+ char *pGlyphBase);
+
+void xnestPushPixels(DrawablePtr pDrawable, GCPtr pGC, PixmapPtr pBitmap,
+ int width, int height, int x, int y);
#endif /* XNESTGCOPS_H */
Index: Keyboard.h
===================================================================
RCS file: /cvs/xserver/xserver/hw/xnest/Keyboard.h,v
retrieving revision 1.1.1.2
retrieving revision 1.1.1.2.10.1
diff -u -d -r1.1.1.2 -r1.1.1.2.10.1
--- Keyboard.h 16 Jan 2001 22:43:48 -0000 1.1.1.2
+++ Keyboard.h 29 Oct 2003 16:26:51 -0000 1.1.1.2.10.1
@@ -19,8 +19,4 @@
#define XNEST_KEYBOARD_EVENT_MASK \
(KeyPressMask | KeyReleaseMask | FocusChangeMask | KeymapStateMask)
-void xnestBell();
-void xnestChangeKeyboardControl();
-int xnestKeyboardProc();
-
#endif /* XNESTKEYBOARD_H */
Index: Screen.c
===================================================================
RCS file: /cvs/xserver/xserver/hw/xnest/Screen.c,v
retrieving revision 3.12
retrieving revision 3.12.2.1
diff -u -d -r3.12 -r3.12.2.1
--- Screen.c 12 Oct 2003 00:21:02 -0000 3.12
+++ Screen.c 29 Oct 2003 16:26:51 -0000 3.12.2.1
@@ -46,8 +46,7 @@
int xnestScreenGeneration = -1;
#endif
-ScreenPtr xnestScreen(window)
- Window window;
+ScreenPtr xnestScreen(Window window)
{
int i;
Index: Screen.h
===================================================================
RCS file: /cvs/xserver/xserver/hw/xnest/Screen.h,v
retrieving revision 1.1.1.2
retrieving revision 1.1.1.2.10.1
diff -u -d -r1.1.1.2 -r1.1.1.2.10.1
--- Screen.h 16 Jan 2001 22:43:51 -0000 1.1.1.2
+++ Screen.h 29 Oct 2003 16:26:51 -0000 1.1.1.2.10.1
@@ -19,8 +19,8 @@
extern Window xnestDefaultWindows[MAXSCREENS];
extern Window xnestScreenSaverWindows[MAXSCREENS];
-ScreenPtr xnestScreen();
-Bool xnestOpenScreen();
-Bool xnestCloseScreen();
+ScreenPtr xnestScreen(Window window);
+Bool xnestOpenScreen(void);
+Bool xnestCloseScreen(void);
#endif /* XNESTSCREEN_H */
Index: Visual.c
===================================================================
RCS file: /cvs/xserver/xserver/hw/xnest/Visual.c,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -u -d -r1.2 -r1.2.2.1
--- Visual.c 12 Oct 2003 00:21:02 -0000 1.2
+++ Visual.c 29 Oct 2003 16:26:51 -0000 1.2.2.1
@@ -21,8 +21,7 @@
#include "Display.h"
#include "Visual.h"
-Visual *xnestVisual(pVisual)
- VisualPtr pVisual;
+Visual *xnestVisual(VisualPtr pVisual)
{
int i;
@@ -39,9 +38,7 @@
return NULL;
}
-Visual *xnestVisualFromID(pScreen, visual)
- ScreenPtr pScreen;
- VisualID visual;
+Visual *xnestVisualFromID(ScreenPtr pScreen, VisualID visual)
{
int i;
Index: Visual.h
===================================================================
RCS file: /cvs/xserver/xserver/hw/xnest/Visual.h,v
retrieving revision 1.1.1.2
retrieving revision 1.1.1.2.10.1
diff -u -d -r1.1.1.2 -r1.1.1.2.10.1
--- Visual.h 16 Jan 2001 22:43:52 -0000 1.1.1.2
+++ Visual.h 29 Oct 2003 16:26:51 -0000 1.1.1.2.10.1
@@ -16,9 +16,9 @@
#ifndef XNESTVISUAL_H
#define XNESTVISUAL_H
-Visual *xnestVisual();
-Visual *xnestVisualFromID();
-Colormap xnestDefaultVisualColormap();
+Visual *xnestVisual(VisualPtr pVisual);
+Visual *xnestVisualFromID(ScreenPtr pScreen, VisualID visual);
+Colormap xnestDefaultVisualColormap(void);
#define xnestDefaultVisual(pScreen) \
xnestVisualFromID((pScreen), (pScreen)->rootVisual)
Index: Window.c
===================================================================
RCS file: /cvs/xserver/xserver/hw/xnest/Window.c,v
retrieving revision 3.8
retrieving revision 3.8.2.1
diff -u -d -r3.8 -r3.8.2.1
--- Window.c 12 Oct 2003 00:21:02 -0000 3.8
+++ Window.c 29 Oct 2003 16:26:51 -0000 3.8.2.1
@@ -50,8 +50,7 @@
return WT_WALKCHILDREN;
}
-WindowPtr xnestWindowPtr(window)
- Window window;
+WindowPtr xnestWindowPtr(Window window)
{
xnestWindowMatch wm;
int i;
Index: XNCursor.h
===================================================================
RCS file: /cvs/xserver/xserver/hw/xnest/XNCursor.h,v
retrieving revision 1.2
retrieving revision 1.2.4.1
diff -u -d -r1.2 -r1.2.4.1
--- XNCursor.h 23 Nov 2002 19:27:50 -0000 1.2
+++ XNCursor.h 29 Oct 2003 16:26:51 -0000 1.2.4.1
@@ -27,12 +27,22 @@
#define xnestCursor(pCursor, pScreen) \
(xnestCursorPriv(pCursor, pScreen)->cursor)
-void xnestConstrainCursor();
-void xnestCursorLimits();
-Bool xnestDisplayCursor();
-Bool xnestRealizeCursor();
-Bool xnestUnrealizeCursor();
-void xnestRecolorCursor();
-Bool xnestSetCursorPosition();
+void xnestConstrainCursor(ScreenPtr pScreen, BoxPtr pBox);
+
+void xnestCursorLimits(ScreenPtr pScreen,
+ CursorPtr pCursor,
+ BoxPtr pHotBox,
+ BoxPtr pTopLeftBox);
+
+Bool xnestDisplayCursor(ScreenPtr pScreen, CursorPtr pCursor);
+
+Bool xnestRealizeCursor(ScreenPtr pScreen, CursorPtr pCursor);
+
+Bool xnestUnrealizeCursor(ScreenPtr pScreen, CursorPtr pCursor);
+
+void xnestRecolorCursor(ScreenPtr pScreen, CursorPtr pCursor, Bool displayed);
+
+Bool xnestSetCursorPosition(ScreenPtr pScreen, int x, int y, Bool generateEvent);
+
#endif /* XNESTCURSOR_H */
Index: XNFont.h
===================================================================
RCS file: /cvs/xserver/xserver/hw/xnest/XNFont.h,v
retrieving revision 1.1.1.2
retrieving revision 1.1.1.2.10.1
diff -u -d -r1.1.1.2 -r1.1.1.2.10.1
--- XNFont.h 16 Jan 2001 22:43:54 -0000 1.1.1.2
+++ XNFont.h 29 Oct 2003 16:26:51 -0000 1.1.1.2.10.1
@@ -30,7 +30,7 @@
#define xnestFont(pFont) (xnestFontStruct(pFont)->fid)
-Bool xnestRealizeFont();
-Bool xnestUnrealizeFont();
+Bool xnestRealizeFont(ScreenPtr pScreen, FontPtr pFont);
+Bool xnestUnrealizeFont(ScreenPtr pScreen, FontPtr pFont);
#endif /* XNESTFONT_H */
Index: XNGC.h
===================================================================
RCS file: /cvs/xserver/xserver/hw/xnest/XNGC.h,v
retrieving revision 1.1.1.2
retrieving revision 1.1.1.2.10.1
diff -u -d -r1.1.1.2 -r1.1.1.2.10.1
--- XNGC.h 16 Jan 2001 22:43:54 -0000 1.1.1.2
+++ XNGC.h 29 Oct 2003 16:26:51 -0000 1.1.1.2.10.1
@@ -30,14 +30,6 @@
#define xnestGC(pGC) (xnestGCPriv(pGC)->gc)
-Bool xnestCreateGC();
-void xnestValidateGC();
-void xnestChangeGC();
-void xnestCopyGC();
-void xnestDestroyGC();
-void xnestChangeClip();
-void xnestDestroyClip();
-void xnestDestroyClipHelper();
-void xnestCopyClip();
+Bool xnestCreateGC(GCPtr pGC);
#endif /* XNESTGC_H */
Index: XNPixmap.h
===================================================================
RCS file: /cvs/xserver/xserver/hw/xnest/XNPixmap.h,v
retrieving revision 1.4
retrieving revision 1.4.2.1
diff -u -d -r1.4 -r1.4.2.1
--- XNPixmap.h 12 Oct 2003 00:21:02 -0000 1.4
+++ XNPixmap.h 29 Oct 2003 16:26:51 -0000 1.4.2.1
@@ -37,8 +37,4 @@
#define xnestSharePixmap(pPixmap) ((pPixmap)->refcnt++)
-PixmapPtr xnestCreatePixmap();
-Bool xnestDestroyPixmap();
-RegionPtr xnestPixmapToRegion();
-
#endif /* XNESTPIXMAP_H */
Index: XNWindow.h
===================================================================
RCS file: /cvs/xserver/xserver/hw/xnest/XNWindow.h,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -u -d -r1.2 -r1.2.2.1
--- XNWindow.h 13 Sep 2003 21:33:10 -0000 1.2
+++ XNWindow.h 29 Oct 2003 16:26:51 -0000 1.2.2.1
@@ -57,21 +57,23 @@
#define CWParent CWSibling
#define CWStackingOrder CWStackMode
-WindowPtr xnestWindowPtr();
-Bool xnestCreateWindow();
-Bool xnestDestroyWindow();
-Bool xnestPositionWindow();
-void xnestConfigureWindow();
-Bool xnestChangeWindowAttributes();
-Bool xnestRealizeWindow();
-Bool xnestUnrealizeWindow();
-void xnestPaintWindowBackground();
-void xnestPaintWindowBorder();
-void xnestCopyWindow();
-void xnestClipNotify();
-void xnestWindowExposures();
+extern Window xnestParentWindow;
+
+WindowPtr xnestWindowPtr(Window window);
+Bool xnestCreateWindow(void);
+Bool xnestDestroyWindow(void);
+Bool xnestPositionWindow(void);
+void xnestConfigureWindow(void);
+Bool xnestChangeWindowAttributes(void);
+Bool xnestRealizeWindow(void);
+Bool xnestUnrealizeWindow(void);
+void xnestPaintWindowBackground(void);
+void xnestPaintWindowBorder(void);
+void xnestCopyWindow(void);
+void xnestClipNotify(void);
+void xnestWindowExposures(void);
#ifdef SHAPE
-void xnestShapeWindow();
+void xnestShapeWindow(void);
#endif /* SHAPE */
#endif /* XNESTWINDOW_H */