Unverified Commit 5421dd44 authored by Mihai Moldovan's avatar Mihai Moldovan

Merge branch 'sunweaver-pr/remove-index-from-CloseScreen-ABI-backport' into 3.6.x

parents ab3974f2 93ea74e5
...@@ -149,7 +149,7 @@ GCFuncs XineramaGCFuncs = { ...@@ -149,7 +149,7 @@ GCFuncs XineramaGCFuncs = {
static Bool static Bool
XineramaCloseScreen (int i, ScreenPtr pScreen) XineramaCloseScreen (ScreenPtr pScreen)
{ {
PanoramiXScreenPtr pScreenPriv = PanoramiXScreenPtr pScreenPriv =
(PanoramiXScreenPtr) pScreen->devPrivates[PanoramiXScreenIndex].ptr; (PanoramiXScreenPtr) pScreen->devPrivates[PanoramiXScreenIndex].ptr;
...@@ -163,7 +163,7 @@ XineramaCloseScreen (int i, ScreenPtr pScreen) ...@@ -163,7 +163,7 @@ XineramaCloseScreen (int i, ScreenPtr pScreen)
free ((void *) pScreenPriv); free ((void *) pScreenPriv);
return (*pScreen->CloseScreen) (i, pScreen); return (*pScreen->CloseScreen) (pScreen);
} }
Bool Bool
......
...@@ -219,7 +219,7 @@ typedef struct { ...@@ -219,7 +219,7 @@ typedef struct {
DestroyWindowProcPtr DestroyWindow; DestroyWindowProcPtr DestroyWindow;
DestroyPixmapProcPtr DestroyPixmap; DestroyPixmapProcPtr DestroyPixmap;
CloseScreenProcPtr CloseScreen; CloseScreenProcPtr CloseScreen;
Bool (* ddCloseScreen)(int, ScreenPtr); Bool (* ddCloseScreen)(ScreenPtr);
int (* ddQueryAdaptors)(ScreenPtr, XvAdaptorPtr*, int*); int (* ddQueryAdaptors)(ScreenPtr, XvAdaptorPtr*, int*);
DevUnion devPriv; DevUnion devPriv;
} XvScreenRec, *XvScreenPtr; } XvScreenRec, *XvScreenPtr;
......
...@@ -131,7 +131,7 @@ static void WriteSwappedVideoNotifyEvent(xvEvent *, xvEvent *); ...@@ -131,7 +131,7 @@ static void WriteSwappedVideoNotifyEvent(xvEvent *, xvEvent *);
static void WriteSwappedPortNotifyEvent(xvEvent *, xvEvent *); static void WriteSwappedPortNotifyEvent(xvEvent *, xvEvent *);
static Bool CreateResourceTypes(void); static Bool CreateResourceTypes(void);
static Bool XvCloseScreen(int, ScreenPtr); static Bool XvCloseScreen(ScreenPtr);
static Bool XvDestroyPixmap(PixmapPtr); static Bool XvDestroyPixmap(PixmapPtr);
static Bool XvDestroyWindow(WindowPtr); static Bool XvDestroyWindow(WindowPtr);
static void XvResetProc(ExtensionEntry*); static void XvResetProc(ExtensionEntry*);
...@@ -307,7 +307,6 @@ XvScreenInit(ScreenPtr pScreen) ...@@ -307,7 +307,6 @@ XvScreenInit(ScreenPtr pScreen)
static Bool static Bool
XvCloseScreen( XvCloseScreen(
int ii,
ScreenPtr pScreen ScreenPtr pScreen
){ ){
...@@ -319,13 +318,13 @@ XvCloseScreen( ...@@ -319,13 +318,13 @@ XvCloseScreen(
pScreen->DestroyWindow = pxvs->DestroyWindow; pScreen->DestroyWindow = pxvs->DestroyWindow;
pScreen->CloseScreen = pxvs->CloseScreen; pScreen->CloseScreen = pxvs->CloseScreen;
(* pxvs->ddCloseScreen)(ii, pScreen); (* pxvs->ddCloseScreen)(pScreen);
free(pxvs); free(pxvs);
pScreen->devPrivates[XvScreenIndex].ptr = (void *)NULL; pScreen->devPrivates[XvScreenIndex].ptr = (void *)NULL;
return (*pScreen->CloseScreen)(ii, pScreen); return (*pScreen->CloseScreen)(pScreen);
} }
......
...@@ -696,7 +696,7 @@ XvMCExtensionInit() ...@@ -696,7 +696,7 @@ XvMCExtensionInit()
} }
static Bool static Bool
XvMCCloseScreen (int i, ScreenPtr pScreen) XvMCCloseScreen (ScreenPtr pScreen)
{ {
XvMCScreenPtr pScreenPriv = XVMC_GET_PRIVATE(pScreen); XvMCScreenPtr pScreenPriv = XVMC_GET_PRIVATE(pScreen);
...@@ -704,7 +704,7 @@ XvMCCloseScreen (int i, ScreenPtr pScreen) ...@@ -704,7 +704,7 @@ XvMCCloseScreen (int i, ScreenPtr pScreen)
free(pScreenPriv); free(pScreenPriv);
return (*pScreen->CloseScreen)(i, pScreen); return (*pScreen->CloseScreen)(pScreen);
} }
......
...@@ -40,7 +40,7 @@ int CompSubwindowsPrivIndex = -1; ...@@ -40,7 +40,7 @@ int CompSubwindowsPrivIndex = -1;
#endif #endif
static Bool static Bool
compCloseScreen (int index, ScreenPtr pScreen) compCloseScreen (ScreenPtr pScreen)
{ {
CompScreenPtr cs = GetCompScreen (pScreen); CompScreenPtr cs = GetCompScreen (pScreen);
Bool ret; Bool ret;
...@@ -78,7 +78,7 @@ compCloseScreen (int index, ScreenPtr pScreen) ...@@ -78,7 +78,7 @@ compCloseScreen (int index, ScreenPtr pScreen)
free (cs); free (cs);
FAKE_DIX_SET_SCREEN_PRIVATE(pScreen, NULL); FAKE_DIX_SET_SCREEN_PRIVATE(pScreen, NULL);
ret = (*pScreen->CloseScreen) (index, pScreen); ret = (*pScreen->CloseScreen) (pScreen);
return ret; return ret;
} }
......
...@@ -372,7 +372,7 @@ main(int argc, char *argv[], char *envp[]) ...@@ -372,7 +372,7 @@ main(int argc, char *argv[], char *envp[])
FreeScratchPixmapsForScreen(i); FreeScratchPixmapsForScreen(i);
FreeGCperDepth(i); FreeGCperDepth(i);
FreeDefaultStipple(i); FreeDefaultStipple(i);
(* screenInfo.screens[i]->CloseScreen)(i, screenInfo.screens[i]); (* screenInfo.screens[i]->CloseScreen)(screenInfo.screens[i]);
FreeScreen(screenInfo.screens[i]); FreeScreen(screenInfo.screens[i]);
screenInfo.numScreens = i; screenInfo.numScreens = i;
} }
......
...@@ -1703,7 +1703,7 @@ fbPushPixels (GCPtr pGC, ...@@ -1703,7 +1703,7 @@ fbPushPixels (GCPtr pGC,
*/ */
Bool Bool
fbCloseScreen (int indx, ScreenPtr pScreen); fbCloseScreen (ScreenPtr pScreen);
Bool Bool
fbRealizeFont(ScreenPtr pScreen, FontPtr pFont); fbRealizeFont(ScreenPtr pScreen, FontPtr pFont);
......
...@@ -88,7 +88,7 @@ fbOverlayCreateWindow(WindowPtr pWin) ...@@ -88,7 +88,7 @@ fbOverlayCreateWindow(WindowPtr pWin)
} }
Bool Bool
fbOverlayCloseScreen (int iScreen, ScreenPtr pScreen) fbOverlayCloseScreen (ScreenPtr pScreen)
{ {
FbOverlayScrPrivPtr pScrPriv = fbOverlayGetScrPriv(pScreen); FbOverlayScrPrivPtr pScrPriv = fbOverlayGetScrPriv(pScreen);
int i; int i;
......
...@@ -65,7 +65,7 @@ Bool ...@@ -65,7 +65,7 @@ Bool
fbOverlayCreateWindow(WindowPtr pWin); fbOverlayCreateWindow(WindowPtr pWin);
Bool Bool
fbOverlayCloseScreen (int iScreen, ScreenPtr pScreen); fbOverlayCloseScreen (ScreenPtr pScreen);
int int
fbOverlayWindowLayer(WindowPtr pWin); fbOverlayWindowLayer(WindowPtr pWin);
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#include "fb.h" #include "fb.h"
Bool Bool
fbCloseScreen (int index, ScreenPtr pScreen) fbCloseScreen (ScreenPtr pScreen)
{ {
int d; int d;
DepthPtr depths = pScreen->allowedDepths; DepthPtr depths = pScreen->allowedDepths;
......
...@@ -820,7 +820,7 @@ static int nxagentColorOffset(unsigned long mask) ...@@ -820,7 +820,7 @@ static int nxagentColorOffset(unsigned long mask)
return count; return count;
} }
Bool nxagentOpenScreen(int index, ScreenPtr pScreen, Bool nxagentOpenScreen(ScreenPtr pScreen,
int argc, char *argv[]) int argc, char *argv[])
{ {
VisualPtr visuals; VisualPtr visuals;
...@@ -846,7 +846,7 @@ Bool nxagentOpenScreen(int index, ScreenPtr pScreen, ...@@ -846,7 +846,7 @@ Bool nxagentOpenScreen(int index, ScreenPtr pScreen,
#ifdef TEST #ifdef TEST
fprintf(stderr, "nxagentOpenScreen: Called for screen index [%d].\n", fprintf(stderr, "nxagentOpenScreen: Called for screen index [%d].\n",
index); pScreen->myNum);
#endif #endif
if (nxagentRenderEnable && nxagentReconnectTrap == False) if (nxagentRenderEnable && nxagentReconnectTrap == False)
...@@ -2075,7 +2075,7 @@ Reply Total Cached Bits In Bits Out Bits/Reply Ratio ...@@ -2075,7 +2075,7 @@ Reply Total Cached Bits In Bits Out Bits/Reply Ratio
return True; return True;
} }
Bool nxagentCloseScreen(int index, ScreenPtr pScreen) Bool nxagentCloseScreen(ScreenPtr pScreen)
{ {
int i; int i;
...@@ -3552,7 +3552,7 @@ Bool nxagentReconnectScreen(void *p0) ...@@ -3552,7 +3552,7 @@ Bool nxagentReconnectScreen(void *p0)
fprintf(stderr, "nxagentReconnectScreen\n"); fprintf(stderr, "nxagentReconnectScreen\n");
#endif #endif
if (!nxagentOpenScreen(0, nxagentDefaultScreen, nxagentArgc, nxagentArgv)) if (!nxagentOpenScreen(nxagentDefaultScreen, nxagentArgc, nxagentArgv))
{ {
return False; return False;
} }
......
...@@ -88,10 +88,10 @@ void nxagentInitViewportFrame(ScreenPtr pScreen, WindowPtr pRootWin); ...@@ -88,10 +88,10 @@ void nxagentInitViewportFrame(ScreenPtr pScreen, WindowPtr pRootWin);
#endif /* #ifdef VIEWPORT_FRAME */ #endif /* #ifdef VIEWPORT_FRAME */
Bool nxagentOpenScreen(int index, ScreenPtr pScreen, Bool nxagentOpenScreen(ScreenPtr pScreen,
int argc, char *argv[]); int argc, char *argv[]);
Bool nxagentCloseScreen(int index, ScreenPtr pScreen); Bool nxagentCloseScreen(ScreenPtr pScreen);
#define nxagentScreen(window) nxagentDefaultScreen #define nxagentScreen(window) nxagentDefaultScreen
......
...@@ -79,7 +79,6 @@ extern Bool AllocateGCPrivate( ...@@ -79,7 +79,6 @@ extern Bool AllocateGCPrivate(
extern int AddScreen( extern int AddScreen(
Bool (* /*pfnInit*/)( Bool (* /*pfnInit*/)(
int /*index*/,
ScreenPtr /*pScreen*/, ScreenPtr /*pScreen*/,
int /*argc*/, int /*argc*/,
char ** /*argv*/), char ** /*argv*/),
......
...@@ -89,7 +89,6 @@ typedef struct _Depth { ...@@ -89,7 +89,6 @@ typedef struct _Depth {
*/ */
typedef Bool (* CloseScreenProcPtr)( typedef Bool (* CloseScreenProcPtr)(
int /*index*/,
ScreenPtr /*pScreen*/); ScreenPtr /*pScreen*/);
typedef void (* QueryBestSizeProcPtr)( typedef void (* QueryBestSizeProcPtr)(
......
...@@ -437,7 +437,6 @@ extern Bool miModifyPixmapHeader( ...@@ -437,7 +437,6 @@ extern Bool miModifyPixmapHeader(
); );
extern Bool miCloseScreen( extern Bool miCloseScreen(
int /*index*/,
ScreenPtr /*pScreen*/ ScreenPtr /*pScreen*/
); );
......
...@@ -183,7 +183,7 @@ else \ ...@@ -183,7 +183,7 @@ else \
static int miBSScreenIndex; static int miBSScreenIndex;
static unsigned long miBSGeneration = 0; static unsigned long miBSGeneration = 0;
static Bool miBSCloseScreen(int i, ScreenPtr pScreen); static Bool miBSCloseScreen(ScreenPtr pScreen);
static void miBSGetImage(DrawablePtr pDrawable, int sx, int sy, static void miBSGetImage(DrawablePtr pDrawable, int sx, int sy,
int w, int h, unsigned int format, int w, int h, unsigned int format,
unsigned long planemask, char *pdstLine); unsigned long planemask, char *pdstLine);
...@@ -416,8 +416,7 @@ miInitializeBackingStore (pScreen) ...@@ -416,8 +416,7 @@ miInitializeBackingStore (pScreen)
*/ */
static Bool static Bool
miBSCloseScreen (i, pScreen) miBSCloseScreen (pScreen)
int i;
ScreenPtr pScreen; ScreenPtr pScreen;
{ {
miBSScreenPtr pScreenPriv; miBSScreenPtr pScreenPriv;
...@@ -432,7 +431,7 @@ miBSCloseScreen (i, pScreen) ...@@ -432,7 +431,7 @@ miBSCloseScreen (i, pScreen)
free ((void *) pScreenPriv); free ((void *) pScreenPriv);
return (*pScreen->CloseScreen) (i, pScreen); return (*pScreen->CloseScreen) (pScreen);
} }
static void miBSFillVirtualBits(DrawablePtr pDrawable, GCPtr pGC, static void miBSFillVirtualBits(DrawablePtr pDrawable, GCPtr pGC,
......
...@@ -56,7 +56,7 @@ in this Software without prior written authorization from The Open Group. ...@@ -56,7 +56,7 @@ in this Software without prior written authorization from The Open Group.
static int miDCScreenIndex; static int miDCScreenIndex;
static unsigned long miDCGeneration = 0; static unsigned long miDCGeneration = 0;
static Bool miDCCloseScreen(int index, ScreenPtr pScreen); static Bool miDCCloseScreen(ScreenPtr pScreen);
typedef struct { typedef struct {
GCPtr pSourceGC, pMaskGC; GCPtr pSourceGC, pMaskGC;
...@@ -163,8 +163,7 @@ miDCInitialize (pScreen, screenFuncs) ...@@ -163,8 +163,7 @@ miDCInitialize (pScreen, screenFuncs)
#define tossPict(pict) (pict ? FreePicture (pict, 0) : 0) #define tossPict(pict) (pict ? FreePicture (pict, 0) : 0)
static Bool static Bool
miDCCloseScreen (index, pScreen) miDCCloseScreen (pScreen)
int index;
ScreenPtr pScreen; ScreenPtr pScreen;
{ {
miDCScreenPtr pScreenPriv; miDCScreenPtr pScreenPriv;
...@@ -185,7 +184,7 @@ miDCCloseScreen (index, pScreen) ...@@ -185,7 +184,7 @@ miDCCloseScreen (index, pScreen)
tossPict (pScreenPriv->pTempPicture); tossPict (pScreenPriv->pTempPicture);
#endif #endif
free ((void *) pScreenPriv); free ((void *) pScreenPriv);
return (*pScreen->CloseScreen) (index, pScreen); return (*pScreen->CloseScreen) (pScreen);
} }
static Bool static Bool
......
...@@ -62,7 +62,7 @@ static Bool HasUnderlayChildren(WindowPtr); ...@@ -62,7 +62,7 @@ static Bool HasUnderlayChildren(WindowPtr);
static void MarkUnderlayWindow(WindowPtr); static void MarkUnderlayWindow(WindowPtr);
static Bool CollectUnderlayChildrenRegions(WindowPtr, RegionPtr); static Bool CollectUnderlayChildrenRegions(WindowPtr, RegionPtr);
static Bool miOverlayCloseScreen(int, ScreenPtr); static Bool miOverlayCloseScreen(ScreenPtr);
static Bool miOverlayCreateWindow(WindowPtr); static Bool miOverlayCreateWindow(WindowPtr);
static Bool miOverlayDestroyWindow(WindowPtr); static Bool miOverlayDestroyWindow(WindowPtr);
static Bool miOverlayUnrealizeWindow(WindowPtr); static Bool miOverlayUnrealizeWindow(WindowPtr);
...@@ -167,7 +167,7 @@ miInitOverlay( ...@@ -167,7 +167,7 @@ miInitOverlay(
static Bool static Bool
miOverlayCloseScreen(int i, ScreenPtr pScreen) miOverlayCloseScreen(ScreenPtr pScreen)
{ {
miOverlayScreenPtr pScreenPriv = MIOVERLAY_GET_SCREEN_PRIVATE(pScreen); miOverlayScreenPtr pScreenPriv = MIOVERLAY_GET_SCREEN_PRIVATE(pScreen);
...@@ -179,7 +179,7 @@ miOverlayCloseScreen(int i, ScreenPtr pScreen) ...@@ -179,7 +179,7 @@ miOverlayCloseScreen(int i, ScreenPtr pScreen)
free(pScreenPriv); free(pScreenPriv);
return (*pScreen->CloseScreen)(i, pScreen); return (*pScreen->CloseScreen)(pScreen);
} }
......
...@@ -66,7 +66,7 @@ static void miPointerCursorLimits(ScreenPtr pScreen, CursorPtr pCursor, ...@@ -66,7 +66,7 @@ static void miPointerCursorLimits(ScreenPtr pScreen, CursorPtr pCursor,
BoxPtr pHotBox, BoxPtr pTopLeftBox); BoxPtr pHotBox, BoxPtr pTopLeftBox);
static Bool miPointerSetCursorPosition(ScreenPtr pScreen, int x, int y, static Bool miPointerSetCursorPosition(ScreenPtr pScreen, int x, int y,
Bool generateEvent); Bool generateEvent);
static Bool miPointerCloseScreen(int index, ScreenPtr pScreen); static Bool miPointerCloseScreen(ScreenPtr pScreen);
static void miPointerMove(ScreenPtr pScreen, int x, int y, unsigned long time); static void miPointerMove(ScreenPtr pScreen, int x, int y, unsigned long time);
Bool Bool
...@@ -132,8 +132,7 @@ miPointerInitialize (pScreen, spriteFuncs, screenFuncs, waitForUpdate) ...@@ -132,8 +132,7 @@ miPointerInitialize (pScreen, spriteFuncs, screenFuncs, waitForUpdate)
} }
static Bool static Bool
miPointerCloseScreen (index, pScreen) miPointerCloseScreen (pScreen)
int index;
ScreenPtr pScreen; ScreenPtr pScreen;
{ {
SetupScreen(pScreen); SetupScreen(pScreen);
...@@ -144,7 +143,7 @@ miPointerCloseScreen (index, pScreen) ...@@ -144,7 +143,7 @@ miPointerCloseScreen (index, pScreen)
miPointer.pSpriteScreen = 0; miPointer.pSpriteScreen = 0;
pScreen->CloseScreen = pScreenPriv->CloseScreen; pScreen->CloseScreen = pScreenPriv->CloseScreen;
free ((void *) pScreenPriv); free ((void *) pScreenPriv);
return (*pScreen->CloseScreen) (index, pScreen); return (*pScreen->CloseScreen) (pScreen);
} }
/* /*
......
...@@ -128,8 +128,7 @@ miModifyPixmapHeader(pPixmap, width, height, depth, bitsPerPixel, devKind, ...@@ -128,8 +128,7 @@ miModifyPixmapHeader(pPixmap, width, height, depth, bitsPerPixel, devKind,
/*ARGSUSED*/ /*ARGSUSED*/
Bool Bool
miCloseScreen (iScreen, pScreen) miCloseScreen (pScreen)
int iScreen;
ScreenPtr pScreen; ScreenPtr pScreen;
{ {
return ((*pScreen->DestroyPixmap)((PixmapPtr)pScreen->devPrivate)); return ((*pScreen->DestroyPixmap)((PixmapPtr)pScreen->devPrivate));
......
...@@ -70,7 +70,7 @@ in this Software without prior written authorization from The Open Group. ...@@ -70,7 +70,7 @@ in this Software without prior written authorization from The Open Group.
static int miSpriteScreenIndex; static int miSpriteScreenIndex;
static unsigned long miSpriteGeneration = 0; static unsigned long miSpriteGeneration = 0;
static Bool miSpriteCloseScreen(int i, ScreenPtr pScreen); static Bool miSpriteCloseScreen(ScreenPtr pScreen);
static void miSpriteGetImage(DrawablePtr pDrawable, int sx, int sy, static void miSpriteGetImage(DrawablePtr pDrawable, int sx, int sy,
int w, int h, unsigned int format, int w, int h, unsigned int format,
unsigned long planemask, char *pdstLine); unsigned long planemask, char *pdstLine);
...@@ -248,8 +248,7 @@ miSpriteInitialize (pScreen, cursorFuncs, screenFuncs) ...@@ -248,8 +248,7 @@ miSpriteInitialize (pScreen, cursorFuncs, screenFuncs)
*/ */
static Bool static Bool
miSpriteCloseScreen (i, pScreen) miSpriteCloseScreen (pScreen)
int i;
ScreenPtr pScreen; ScreenPtr pScreen;
{ {
miSpriteScreenPtr pScreenPriv; miSpriteScreenPtr pScreenPriv;
...@@ -270,7 +269,7 @@ miSpriteCloseScreen (i, pScreen) ...@@ -270,7 +269,7 @@ miSpriteCloseScreen (i, pScreen)
free ((void *) pScreenPriv); free ((void *) pScreenPriv);
return (*pScreen->CloseScreen) (i, pScreen); return (*pScreen->CloseScreen) (pScreen);
} }
static void static void
......
...@@ -55,7 +55,7 @@ static unsigned long cwGeneration = 0; ...@@ -55,7 +55,7 @@ static unsigned long cwGeneration = 0;
extern GCOps cwGCOps; extern GCOps cwGCOps;
static Bool static Bool
cwCloseScreen (int i, ScreenPtr pScreen); cwCloseScreen (ScreenPtr pScreen);
static void static void
cwValidateGC(GCPtr pGC, unsigned long stateChanges, DrawablePtr pDrawable); cwValidateGC(GCPtr pGC, unsigned long stateChanges, DrawablePtr pDrawable);
...@@ -673,7 +673,7 @@ miDisableCompositeWrapper(ScreenPtr pScreen) ...@@ -673,7 +673,7 @@ miDisableCompositeWrapper(ScreenPtr pScreen)
} }
static Bool static Bool
cwCloseScreen (int i, ScreenPtr pScreen) cwCloseScreen (ScreenPtr pScreen)
{ {
cwScreenPtr pScreenPriv; cwScreenPtr pScreenPriv;
#ifdef RENDER #ifdef RENDER
...@@ -697,5 +697,5 @@ cwCloseScreen (int i, ScreenPtr pScreen) ...@@ -697,5 +697,5 @@ cwCloseScreen (int i, ScreenPtr pScreen)
free((void *)pScreenPriv); free((void *)pScreenPriv);
return (*pScreen->CloseScreen)(i, pScreen); return (*pScreen->CloseScreen)(pScreen);
} }
...@@ -1717,7 +1717,7 @@ damageDestroyWindow (WindowPtr pWindow) ...@@ -1717,7 +1717,7 @@ damageDestroyWindow (WindowPtr pWindow)
} }
static Bool static Bool
damageCloseScreen (int i, ScreenPtr pScreen) damageCloseScreen (ScreenPtr pScreen)
{ {
damageScrPriv(pScreen); damageScrPriv(pScreen);
...@@ -1729,7 +1729,7 @@ damageCloseScreen (int i, ScreenPtr pScreen) ...@@ -1729,7 +1729,7 @@ damageCloseScreen (int i, ScreenPtr pScreen)
unwrap (pScrPriv, pScreen, CloseScreen); unwrap (pScrPriv, pScreen, CloseScreen);
unwrap (pScrPriv, pScreen, BackingStoreFuncs.RestoreAreas); unwrap (pScrPriv, pScreen, BackingStoreFuncs.RestoreAreas);
free (pScrPriv); free (pScrPriv);
return (*pScreen->CloseScreen) (i, pScreen); return (*pScreen->CloseScreen) (pScreen);
} }
int damageScrPrivateIndex; int damageScrPrivateIndex;
......
...@@ -118,9 +118,6 @@ RRClientCallback(CallbackListPtr *list, void *closure, void *data) ...@@ -118,9 +118,6 @@ RRClientCallback(CallbackListPtr *list, void *closure, void *data)
static Bool static Bool
RRCloseScreen( RRCloseScreen(
#ifdef NXAGENT_SERVER
int i,
#endif
ScreenPtr pScreen) ScreenPtr pScreen)
{ {
rrScrPriv(pScreen); rrScrPriv(pScreen);
...@@ -141,7 +138,7 @@ RRCloseScreen( ...@@ -141,7 +138,7 @@ RRCloseScreen(
free(pScrPriv->outputs); free(pScrPriv->outputs);
free(pScrPriv); free(pScrPriv);
RRNScreens -= 1; /* ok, one fewer screen with RandR running */ RRNScreens -= 1; /* ok, one fewer screen with RandR running */
return (*pScreen->CloseScreen) (i, pScreen); return (*pScreen->CloseScreen) (pScreen);
} }
static void static void
......
...@@ -111,7 +111,7 @@ AnimCurSetCursorPosition (ScreenPtr pScreen, ...@@ -111,7 +111,7 @@ AnimCurSetCursorPosition (ScreenPtr pScreen,
Bool generateEvent); Bool generateEvent);
static Bool static Bool
AnimCurCloseScreen (int index, ScreenPtr pScreen) AnimCurCloseScreen (ScreenPtr pScreen)
{ {
AnimCurScreenPtr as = GetAnimCurScreen(pScreen); AnimCurScreenPtr as = GetAnimCurScreen(pScreen);
Bool ret; Bool ret;
...@@ -127,10 +127,10 @@ AnimCurCloseScreen (int index, ScreenPtr pScreen) ...@@ -127,10 +127,10 @@ AnimCurCloseScreen (int index, ScreenPtr pScreen)
Unwrap(as, pScreen, UnrealizeCursor); Unwrap(as, pScreen, UnrealizeCursor);
Unwrap(as, pScreen, RecolorCursor); Unwrap(as, pScreen, RecolorCursor);
SetAnimCurScreen(pScreen,0); SetAnimCurScreen(pScreen,0);
ret = (*pScreen->CloseScreen) (index, pScreen); ret = (*pScreen->CloseScreen) (pScreen);
free (as); free (as);
if (index == 0) if (screenInfo.numScreens <= 1)
AnimCurScreenPrivateIndex = -1; AnimCurScreenPrivateIndex = -1;
return ret; return ret;
} }
......
...@@ -127,14 +127,14 @@ PictureDestroyWindow (WindowPtr pWindow) ...@@ -127,14 +127,14 @@ PictureDestroyWindow (WindowPtr pWindow)
} }
Bool Bool
PictureCloseScreen (int index, ScreenPtr pScreen) PictureCloseScreen (ScreenPtr pScreen)
{ {
PictureScreenPtr ps = GetPictureScreen(pScreen); PictureScreenPtr ps = GetPictureScreen(pScreen);
Bool ret; Bool ret;
int n; int n;
pScreen->CloseScreen = ps->CloseScreen; pScreen->CloseScreen = ps->CloseScreen;
ret = (*pScreen->CloseScreen) (index, pScreen); ret = (*pScreen->CloseScreen) (pScreen);
PictureResetFilters (pScreen); PictureResetFilters (pScreen);
for (n = 0; n < ps->nformats; n++) for (n = 0; n < ps->nformats; n++)
if (ps->formats[n].type == PictTypeIndexed) if (ps->formats[n].type == PictTypeIndexed)
......
...@@ -406,7 +406,7 @@ Bool ...@@ -406,7 +406,7 @@ Bool
PictureDestroyWindow (WindowPtr pWindow); PictureDestroyWindow (WindowPtr pWindow);
Bool Bool
PictureCloseScreen (int Index, ScreenPtr pScreen); PictureCloseScreen (ScreenPtr pScreen);
void void
PictureStoreColors (ColormapPtr pColormap, int ndef, xColorItem *pdef); PictureStoreColors (ColormapPtr pColormap, int ndef, xColorItem *pdef);
......
...@@ -114,17 +114,17 @@ CursorDisplayCursor (ScreenPtr pScreen, ...@@ -114,17 +114,17 @@ CursorDisplayCursor (ScreenPtr pScreen,
} }
static Bool static Bool
CursorCloseScreen (int index, ScreenPtr pScreen) CursorCloseScreen (ScreenPtr pScreen)
{ {
CursorScreenPtr cs = GetCursorScreen (pScreen); CursorScreenPtr cs = GetCursorScreen (pScreen);
Bool ret; Bool ret;
Unwrap (cs, pScreen, CloseScreen); Unwrap (cs, pScreen, CloseScreen);
Unwrap (cs, pScreen, DisplayCursor); Unwrap (cs, pScreen, DisplayCursor);
ret = (*pScreen->CloseScreen) (index, pScreen); ret = (*pScreen->CloseScreen) (pScreen);
free (cs); free (cs);
if (index == 0) if (screenInfo.numScreens <= 1)
CursorScreenPrivateIndex = -1; CursorScreenPrivateIndex = -1;
return ret; return ret;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment