diff options
Diffstat (limited to 'Xext')
-rw-r--r-- | Xext/saver.c | 36 | ||||
-rw-r--r-- | Xext/shape.c | 34 | ||||
-rw-r--r-- | Xext/shm.c | 46 | ||||
-rw-r--r-- | Xext/xtest.c | 20 | ||||
-rw-r--r-- | Xext/xvdisp.c | 84 | ||||
-rw-r--r-- | Xext/xvmain.c | 6 |
6 files changed, 113 insertions, 113 deletions
diff --git a/Xext/saver.c b/Xext/saver.c index cc4992ee1..6b9ee5997 100644 --- a/Xext/saver.c +++ b/Xext/saver.c @@ -1,4 +1,4 @@ -/* $XdotOrg$ */ +/* $XdotOrg: xc/programs/Xserver/Xext/saver.c,v 1.1.4.2 2003/12/18 19:29:12 kaleb Exp $ */ /* * $XConsortium: saver.c,v 1.12 94/04/17 20:59:36 dpw Exp $ * @@ -48,8 +48,8 @@ in this Software without prior written authorization from the X Consortium. #include "cursorstr.h" #include "colormapst.h" #ifdef XINERAMA -#include "xinerama.h" -#include "xineramaSrv.h" +#include "panoramiX.h" +#include "panoramiXsrv.h" #endif @@ -678,7 +678,7 @@ ScreenSaverHandle (pScreen, xstate, force) } #ifdef XINERAMA - if(noXineramaExtension || !pScreen->myNum) + if(noPanoramiXExtension || !pScreen->myNum) #endif SendScreenSaverNotify (pScreen, state, force); return ret; @@ -1196,19 +1196,19 @@ static int ProcScreenSaverSetAttributes (ClientPtr client) { #ifdef XINERAMA - if(!noXineramaExtension) { + if(!noPanoramiXExtension) { REQUEST(xScreenSaverSetAttributesReq); - XineramaRes *draw; - XineramaRes *backPix = NULL; - XineramaRes *bordPix = NULL; - XineramaRes *cmap = NULL; + PanoramiXRes *draw; + PanoramiXRes *backPix = NULL; + PanoramiXRes *bordPix = NULL; + PanoramiXRes *cmap = NULL; int i, status = 0, len; int pback_offset = 0, pbord_offset = 0, cmap_offset = 0; XID orig_visual, tmp; REQUEST_AT_LEAST_SIZE (xScreenSaverSetAttributesReq); - if(!(draw = (XineramaRes *)SecurityLookupIDByClass( + if(!(draw = (PanoramiXRes *)SecurityLookupIDByClass( client, stuff->drawable, XRC_DRAWABLE, SecurityWriteAccess))) return BadDrawable; @@ -1220,7 +1220,7 @@ ProcScreenSaverSetAttributes (ClientPtr client) pback_offset = Ones((Mask)stuff->mask & (CWBackPixmap - 1)); tmp = *((CARD32 *) &stuff[1] + pback_offset); if ((tmp != None) && (tmp != ParentRelative)) { - if(!(backPix = (XineramaRes*) SecurityLookupIDByType( + if(!(backPix = (PanoramiXRes*) SecurityLookupIDByType( client, tmp, XRT_PIXMAP, SecurityReadAccess))) return BadPixmap; } @@ -1230,7 +1230,7 @@ ProcScreenSaverSetAttributes (ClientPtr client) pbord_offset = Ones((Mask)stuff->mask & (CWBorderPixmap - 1)); tmp = *((CARD32 *) &stuff[1] + pbord_offset); if (tmp != CopyFromParent) { - if(!(bordPix = (XineramaRes*) SecurityLookupIDByType( + if(!(bordPix = (PanoramiXRes*) SecurityLookupIDByType( client, tmp, XRT_PIXMAP, SecurityReadAccess))) return BadPixmap; } @@ -1240,7 +1240,7 @@ ProcScreenSaverSetAttributes (ClientPtr client) cmap_offset = Ones((Mask)stuff->mask & (CWColormap - 1)); tmp = *((CARD32 *) &stuff[1] + cmap_offset); if ((tmp != CopyFromParent) && (tmp != None)) { - if(!(cmap = (XineramaRes*) SecurityLookupIDByType( + if(!(cmap = (PanoramiXRes*) SecurityLookupIDByType( client, tmp, XRT_COLORMAP, SecurityReadAccess))) return BadColor; } @@ -1259,7 +1259,7 @@ ProcScreenSaverSetAttributes (ClientPtr client) if (orig_visual != CopyFromParent) stuff->visualID = - XineramaVisualTable[(orig_visual*MAXSCREENS) + i]; + PanoramiXVisualTable[(orig_visual*MAXSCREENS) + i]; status = ScreenSaverSetAttributes(client); } @@ -1275,16 +1275,16 @@ static int ProcScreenSaverUnsetAttributes (ClientPtr client) { #ifdef XINERAMA - if(!noXineramaExtension) { + if(!noPanoramiXExtension) { REQUEST(xScreenSaverUnsetAttributesReq); - XineramaRes *draw; + PanoramiXRes *draw; int i; - if(!(draw = (XineramaRes *)SecurityLookupIDByClass( + if(!(draw = (PanoramiXRes *)SecurityLookupIDByClass( client, stuff->drawable, XRC_DRAWABLE, SecurityWriteAccess))) return BadDrawable; - for(i = XineramaNumScreens - 1; i > 0; i--) { + for(i = PanoramiXNumScreens - 1; i > 0; i--) { stuff->drawable = draw->info[i].id; ScreenSaverUnsetAttributes(client); } diff --git a/Xext/shape.c b/Xext/shape.c index 4774a0562..dfa7825ea 100644 --- a/Xext/shape.c +++ b/Xext/shape.c @@ -1,4 +1,4 @@ -/* $XdotOrg: xc/programs/Xserver/Xext/shape.c,v 3.19 2003/11/17 22:20:26 dawes Exp $ */ +/* $XdotOrg: xc/programs/Xserver/Xext/shape.c,v 1.1.4.3 2003/12/18 19:29:12 kaleb Exp $ */ /* $XFree86: xc/programs/Xserver/Xext/shape.c,v 3.19 2003/11/17 22:20:26 dawes Exp $ */ /************************************************************ @@ -114,8 +114,8 @@ static DISPATCH_PROC(SProcShapeRectangles); static DISPATCH_PROC(SProcShapeSelectInput); #ifdef XINERAMA -#include "xinerama.h" -#include "xineramaSrv.h" +#include "panoramiX.h" +#include "panoramiXsrv.h" #endif #if 0 @@ -382,12 +382,12 @@ ProcXineramaShapeRectangles( register ClientPtr client) { REQUEST(xShapeRectanglesReq); - XineramaRes *win; + PanoramiXRes *win; int j, result = 0; REQUEST_AT_LEAST_SIZE (xShapeRectanglesReq); - if(!(win = (XineramaRes *)SecurityLookupIDByType( + if(!(win = (PanoramiXRes *)SecurityLookupIDByType( client, stuff->dest, XRT_WINDOW, SecurityWriteAccess))) return BadWindow; @@ -471,17 +471,17 @@ ProcXineramaShapeMask( register ClientPtr client) { REQUEST(xShapeMaskReq); - XineramaRes *win, *pmap; + PanoramiXRes *win, *pmap; int j, result = 0; REQUEST_SIZE_MATCH (xShapeMaskReq); - if(!(win = (XineramaRes *)SecurityLookupIDByType( + if(!(win = (PanoramiXRes *)SecurityLookupIDByType( client, stuff->dest, XRT_WINDOW, SecurityWriteAccess))) return BadWindow; if(stuff->src != None) { - if(!(pmap = (XineramaRes *)SecurityLookupIDByType( + if(!(pmap = (PanoramiXRes *)SecurityLookupIDByType( client, stuff->src, XRT_PIXMAP, SecurityReadAccess))) return BadPixmap; } else @@ -586,16 +586,16 @@ ProcXineramaShapeCombine( register ClientPtr client) { REQUEST(xShapeCombineReq); - XineramaRes *win, *win2; + PanoramiXRes *win, *win2; int j, result = 0; REQUEST_AT_LEAST_SIZE (xShapeCombineReq); - if(!(win = (XineramaRes *)SecurityLookupIDByType( + if(!(win = (PanoramiXRes *)SecurityLookupIDByType( client, stuff->dest, XRT_WINDOW, SecurityWriteAccess))) return BadWindow; - if(!(win2 = (XineramaRes *)SecurityLookupIDByType( + if(!(win2 = (PanoramiXRes *)SecurityLookupIDByType( client, stuff->src, XRT_WINDOW, SecurityReadAccess))) return BadWindow; @@ -655,12 +655,12 @@ ProcXineramaShapeOffset( register ClientPtr client) { REQUEST(xShapeOffsetReq); - XineramaRes *win; + PanoramiXRes *win; int j, result = 0; REQUEST_AT_LEAST_SIZE (xShapeOffsetReq); - if(!(win = (XineramaRes *)SecurityLookupIDByType( + if(!(win = (PanoramiXRes *)SecurityLookupIDByType( client, stuff->dest, XRT_WINDOW, SecurityWriteAccess))) return BadWindow; @@ -1066,28 +1066,28 @@ ProcShapeDispatch (client) return ProcShapeQueryVersion (client); case X_ShapeRectangles: #ifdef XINERAMA - if ( !noXineramaExtension ) + if ( !noPanoramiXExtension ) return ProcXineramaShapeRectangles (client); else #endif return ProcShapeRectangles (client); case X_ShapeMask: #ifdef XINERAMA - if ( !noXineramaExtension ) + if ( !noPanoramiXExtension ) return ProcXineramaShapeMask (client); else #endif return ProcShapeMask (client); case X_ShapeCombine: #ifdef XINERAMA - if ( !noXineramaExtension ) + if ( !noPanoramiXExtension ) return ProcXineramaShapeCombine (client); else #endif return ProcShapeCombine (client); case X_ShapeOffset: #ifdef XINERAMA - if ( !noXineramaExtension ) + if ( !noPanoramiXExtension ) return ProcXineramaShapeOffset (client); else #endif diff --git a/Xext/shm.c b/Xext/shm.c index 6c3664476..d39e16bab 100644 --- a/Xext/shm.c +++ b/Xext/shm.c @@ -1,4 +1,4 @@ -/* $XdotOrg: xc/programs/Xserver/Xext/shm.c,v 1.1.4.3 2003/12/18 19:29:12 kaleb Exp $ */ +/* $XdotOrg: xc/programs/Xserver/Xext/shm.c,v 1.1.4.4 2003/12/20 00:28:24 kaleb Exp $ */ /* $XFree86: xc/programs/Xserver/Xext/shm.c,v 3.42 2003/12/18 10:15:24 alanh Exp $ * /************************************************************ @@ -64,8 +64,8 @@ in this Software without prior written authorization from The Open Group. #endif #ifdef XINERAMA -#include "xinerama.h" -#include "xineramaSrv.h" +#include "panoramiX.h" +#include "panoramiXsrv.h" #endif #include "modinit.h" @@ -566,17 +566,17 @@ static int ProcXineramaShmPutImage(register ClientPtr client) { int j, result = 0, orig_x, orig_y; - XineramaRes *draw, *gc; + PanoramiXRes *draw, *gc; Bool sendEvent, isRoot; REQUEST(xShmPutImageReq); REQUEST_SIZE_MATCH(xShmPutImageReq); - if(!(draw = (XineramaRes *)SecurityLookupIDByClass( + if(!(draw = (PanoramiXRes *)SecurityLookupIDByClass( client, stuff->drawable, XRC_DRAWABLE, SecurityWriteAccess))) return BadDrawable; - if(!(gc = (XineramaRes *)SecurityLookupIDByType( + if(!(gc = (PanoramiXRes *)SecurityLookupIDByType( client, stuff->gc, XRT_GC, SecurityReadAccess))) return BadGC; @@ -592,8 +592,8 @@ ProcXineramaShmPutImage(register ClientPtr client) stuff->drawable = draw->info[j].id; stuff->gc = gc->info[j].id; if (isRoot) { - stuff->dstX = orig_x - xineramaDataPtr[j].x; - stuff->dstY = orig_y - xineramaDataPtr[j].y; + stuff->dstX = orig_x - panoramiXdataPtr[j].x; + stuff->dstY = orig_y - panoramiXdataPtr[j].y; } result = ProcShmPutImage(client); if(result != client->noClientException) break; @@ -604,7 +604,7 @@ ProcXineramaShmPutImage(register ClientPtr client) static int ProcXineramaShmGetImage(ClientPtr client) { - XineramaRes *draw; + PanoramiXRes *draw; DrawablePtr drawables[MAXSCREENS]; DrawablePtr pDraw; xShmGetImageReply xgi; @@ -623,7 +623,7 @@ ProcXineramaShmGetImage(ClientPtr client) return(BadValue); } - if(!(draw = (XineramaRes *)SecurityLookupIDByClass( + if(!(draw = (PanoramiXRes *)SecurityLookupIDByClass( client, stuff->drawable, XRC_DRAWABLE, SecurityWriteAccess))) return BadDrawable; @@ -646,15 +646,15 @@ ProcXineramaShmGetImage(ClientPtr client) if(isRoot) { if( /* check for being onscreen */ - x < 0 || x + w > XineramaPixWidth || - y < 0 || y + h > XineramaPixHeight ) + x < 0 || x + w > PanoramiXPixWidth || + y < 0 || y + h > PanoramiXPixHeight ) return(BadMatch); } else { if( /* check for being onscreen */ - xineramaDataPtr[0].x + pDraw->x + x < 0 || - xineramaDataPtr[0].x + pDraw->x + x + w > XineramaPixWidth || - xineramaDataPtr[0].y + pDraw->y + y < 0 || - xineramaDataPtr[0].y + pDraw->y + y + h > XineramaPixHeight || + panoramiXdataPtr[0].x + pDraw->x + x < 0 || + panoramiXdataPtr[0].x + pDraw->x + x + w > PanoramiXPixWidth || + panoramiXdataPtr[0].y + pDraw->y + y < 0 || + panoramiXdataPtr[0].y + pDraw->y + y + h > PanoramiXPixHeight || /* check for being inside of border */ x < - wBorderWidth((WindowPtr)pDraw) || x + w > wBorderWidth((WindowPtr)pDraw) + (int)pDraw->width || @@ -664,7 +664,7 @@ ProcXineramaShmGetImage(ClientPtr client) } drawables[0] = pDraw; - for(i = 1; i < XineramaNumScreens; i++) + for(i = 1; i < PanoramiXNumScreens; i++) VERIFY_DRAWABLE(drawables[i], draw->info[i].id, client); xgi.visual = wVisual(((WindowPtr)pDraw)); @@ -727,7 +727,7 @@ ProcXineramaShmCreatePixmap( int i, j, result; ShmDescPtr shmdesc; REQUEST(xShmCreatePixmapReq); - XineramaRes *newPix; + PanoramiXRes *newPix; REQUEST_SIZE_MATCH(xShmCreatePixmapReq); client->errorValue = stuff->pid; @@ -755,13 +755,13 @@ CreatePmap: PixmapBytePad(stuff->width, stuff->depth) * stuff->height, client); - if(!(newPix = (XineramaRes *) xalloc(sizeof(XineramaRes)))) + if(!(newPix = (PanoramiXRes *) xalloc(sizeof(PanoramiXRes)))) return BadAlloc; newPix->type = XRT_PIXMAP; newPix->u.pix.shared = TRUE; newPix->info[0].id = stuff->pid; - for(j = 1; j < XineramaNumScreens; j++) + for(j = 1; j < PanoramiXNumScreens; j++) newPix->info[j].id = FakeClientID(client->index); result = (client->noClientException); @@ -1114,19 +1114,19 @@ ProcShmDispatch (client) return ProcShmDetach(client); case X_ShmPutImage: #ifdef XINERAMA - if ( !noXineramaExtension ) + if ( !noPanoramiXExtension ) return ProcXineramaShmPutImage(client); #endif return ProcShmPutImage(client); case X_ShmGetImage: #ifdef XINERAMA - if ( !noXineramaExtension ) + if ( !noPanoramiXExtension ) return ProcXineramaShmGetImage(client); #endif return ProcShmGetImage(client); case X_ShmCreatePixmap: #ifdef XINERAMA - if ( !noXineramaExtension ) + if ( !noPanoramiXExtension ) return ProcXineramaShmCreatePixmap(client); #endif return ProcShmCreatePixmap(client); diff --git a/Xext/xtest.c b/Xext/xtest.c index 0dec3b623..2e7eeec62 100644 --- a/Xext/xtest.c +++ b/Xext/xtest.c @@ -1,4 +1,4 @@ -/* $XdotOrg: xtest.c,v 1.4 2001/02/09 02:04:33 xorgcvs Exp $ */ +/* $XdotOrg: xc/programs/Xserver/Xext/xtest.c,v 1.1.4.3 2003/12/18 19:29:12 kaleb Exp $ */ /* $Xorg: xtest.c,v 1.4 2001/02/09 02:04:33 xorgcvs Exp $ */ /* @@ -65,8 +65,8 @@ extern int DeviceValuator; #endif /* XINPUT */ #ifdef XINERAMA -#include "xinerama.h" -#include "xineramaSrv.h" +#include "panoramiX.h" +#include "panoramiXsrv.h" #endif static void XTestResetProc( @@ -392,12 +392,12 @@ ProcXTestFakeInput(client) } #ifdef XINERAMA - if (!noXineramaExtension) { + if (!noPanoramiXExtension) { ScreenPtr pScreen = root->drawable.pScreen; BoxRec box; int i; - int x = ev->u.keyButtonPointer.rootX + xineramaDataPtr[0].x; - int y = ev->u.keyButtonPointer.rootY + xineramaDataPtr[0].y; + int x = ev->u.keyButtonPointer.rootX + panoramiXdataPtr[0].x; + int y = ev->u.keyButtonPointer.rootY + panoramiXdataPtr[0].y; if (!POINT_IN_REGION(pScreen, &XineramaScreenRegions[pScreen->myNum], x, y, &box)) { FOR_NSCREENS(i) { @@ -406,8 +406,8 @@ ProcXTestFakeInput(client) &XineramaScreenRegions[i], x, y, &box)) { root = WindowTable[i]; - x -= xineramaDataPtr[i].x; - y -= xineramaDataPtr[i].y; + x -= panoramiXdataPtr[i].x; + y -= panoramiXdataPtr[i].y; ev->u.keyButtonPointer.rootX = x; ev->u.keyButtonPointer.rootY = y; break; @@ -427,9 +427,9 @@ ProcXTestFakeInput(client) ev->u.keyButtonPointer.rootY = root->drawable.height - 1; #ifdef XINERAMA - if ((!noXineramaExtension + if ((!noPanoramiXExtension && root->drawable.pScreen->myNum != XineramaGetCursorScreen()) - || (noXineramaExtension && root != GetCurrentRootWindow())) + || (noPanoramiXExtension && root != GetCurrentRootWindow())) #else if (root != GetCurrentRootWindow()) diff --git a/Xext/xvdisp.c b/Xext/xvdisp.c index 14b8c99e2..9eeb7b17a 100644 --- a/Xext/xvdisp.c +++ b/Xext/xvdisp.c @@ -1,4 +1,4 @@ -/* $XdotOrg$ */ +/* $XdotOrg: xc/programs/Xserver/Xext/xvdisp.c,v 1.1.4.2 2003/12/18 19:29:12 kaleb Exp $ */ /*********************************************************** Copyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts, and the Massachusetts Institute of Technology, Cambridge, Massachusetts. @@ -74,8 +74,8 @@ SOFTWARE. #include "xvdisp.h" #ifdef XINERAMA -#include "xinerama.h" -#include "xineramaSrv.h" +#include "panoramiX.h" +#include "panoramiXsrv.h" unsigned long XvXRTPort; @@ -234,14 +234,14 @@ ProcXvDispatch(ClientPtr client) case xv_QueryEncodings: return(ProcXvQueryEncodings(client)); case xv_PutVideo: #ifdef XINERAMA - if(!noXineramaExtension) + if(!noPanoramiXExtension) return(XineramaXvPutVideo(client)); else #endif return(ProcXvPutVideo(client)); case xv_PutStill: #ifdef XINERAMA - if(!noXineramaExtension) + if(!noPanoramiXExtension) return(XineramaXvPutStill(client)); else #endif @@ -254,14 +254,14 @@ ProcXvDispatch(ClientPtr client) case xv_SelectPortNotify: return(ProcXvSelectPortNotify(client)); case xv_StopVideo: #ifdef XINERAMA - if(!noXineramaExtension) + if(!noPanoramiXExtension) return(XineramaXvStopVideo(client)); else #endif return(ProcXvStopVideo(client)); case xv_SetPortAttribute: #ifdef XINERAMA - if(!noXineramaExtension) + if(!noPanoramiXExtension) return(XineramaXvSetPortAttribute(client)); else #endif @@ -271,7 +271,7 @@ ProcXvDispatch(ClientPtr client) case xv_QueryPortAttributes: return(ProcXvQueryPortAttributes(client)); case xv_PutImage: #ifdef XINERAMA - if(!noXineramaExtension) + if(!noPanoramiXExtension) return(XineramaXvPutImage(client)); else #endif @@ -279,7 +279,7 @@ ProcXvDispatch(ClientPtr client) #ifdef MITSHM case xv_ShmPutImage: #ifdef XINERAMA - if(!noXineramaExtension) + if(!noPanoramiXExtension) return(XineramaXvShmPutImage(client)); else #endif @@ -1872,15 +1872,15 @@ static int XineramaXvStopVideo(ClientPtr client) { int result = Success, i; - XineramaRes *draw, *port; + PanoramiXRes *draw, *port; REQUEST(xvStopVideoReq); REQUEST_SIZE_MATCH(xvStopVideoReq); - if(!(draw = (XineramaRes *)SecurityLookupIDByClass( + if(!(draw = (PanoramiXRes *)SecurityLookupIDByClass( client, stuff->drawable, XRC_DRAWABLE, SecurityWriteAccess))) return BadDrawable; - if(!(port = (XineramaRes *)SecurityLookupIDByType( + if(!(port = (PanoramiXRes *)SecurityLookupIDByType( client, stuff->port, XvXRTPort, SecurityReadAccess))) return _XvBadPort; @@ -1899,12 +1899,12 @@ static int XineramaXvSetPortAttribute(ClientPtr client) { REQUEST(xvSetPortAttributeReq); - XineramaRes *port; + PanoramiXRes *port; int result = Success, i; REQUEST_SIZE_MATCH(xvSetPortAttributeReq); - if(!(port = (XineramaRes *)SecurityLookupIDByType( + if(!(port = (PanoramiXRes *)SecurityLookupIDByType( client, stuff->port, XvXRTPort, SecurityReadAccess))) return _XvBadPort; @@ -1923,22 +1923,22 @@ static int XineramaXvShmPutImage(ClientPtr client) { REQUEST(xvShmPutImageReq); - XineramaRes *draw, *gc, *port; + PanoramiXRes *draw, *gc, *port; Bool send_event = stuff->send_event; Bool isRoot; int result = Success, i, x, y; REQUEST_SIZE_MATCH(xvShmPutImageReq); - if(!(draw = (XineramaRes *)SecurityLookupIDByClass( + if(!(draw = (PanoramiXRes *)SecurityLookupIDByClass( client, stuff->drawable, XRC_DRAWABLE, SecurityWriteAccess))) return BadDrawable; - if(!(gc = (XineramaRes *)SecurityLookupIDByType( + if(!(gc = (PanoramiXRes *)SecurityLookupIDByType( client, stuff->gc, XRT_GC, SecurityReadAccess))) return BadGC; - if(!(port = (XineramaRes *)SecurityLookupIDByType( + if(!(port = (PanoramiXRes *)SecurityLookupIDByType( client, stuff->port, XvXRTPort, SecurityReadAccess))) return _XvBadPort; @@ -1956,8 +1956,8 @@ XineramaXvShmPutImage(ClientPtr client) stuff->drw_x = x; stuff->drw_y = y; if(isRoot) { - stuff->drw_x -= xineramaDataPtr[i].x; - stuff->drw_y -= xineramaDataPtr[i].y; + stuff->drw_x -= panoramiXdataPtr[i].x; + stuff->drw_y -= panoramiXdataPtr[i].y; } stuff->send_event = (send_event && !i) ? 1 : 0; @@ -1972,21 +1972,21 @@ static int XineramaXvPutImage(ClientPtr client) { REQUEST(xvPutImageReq); - XineramaRes *draw, *gc, *port; + PanoramiXRes *draw, *gc, *port; Bool isRoot; int result = Success, i, x, y; REQUEST_AT_LEAST_SIZE(xvPutImageReq); - if(!(draw = (XineramaRes *)SecurityLookupIDByClass( + if(!(draw = (PanoramiXRes *)SecurityLookupIDByClass( client, stuff->drawable, XRC_DRAWABLE, SecurityWriteAccess))) return BadDrawable; - if(!(gc = (XineramaRes *)SecurityLookupIDByType( + if(!(gc = (PanoramiXRes *)SecurityLookupIDByType( client, stuff->gc, XRT_GC, SecurityReadAccess))) return BadGC; - if(!(port = (XineramaRes *)SecurityLookupIDByType( + if(!(port = (PanoramiXRes *)SecurityLookupIDByType( client, stuff->port, XvXRTPort, SecurityReadAccess))) return _XvBadPort; @@ -2004,8 +2004,8 @@ XineramaXvPutImage(ClientPtr client) stuff->drw_x = x; stuff->drw_y = y; if(isRoot) { - stuff->drw_x -= xineramaDataPtr[i].x; - stuff->drw_y -= xineramaDataPtr[i].y; + stuff->drw_x -= panoramiXdataPtr[i].x; + stuff->drw_y -= panoramiXdataPtr[i].y; } result = ProcXvPutImage(client); @@ -2018,21 +2018,21 @@ static int XineramaXvPutVideo(ClientPtr client) { REQUEST(xvPutImageReq); - XineramaRes *draw, *gc, *port; + PanoramiXRes *draw, *gc, *port; Bool isRoot; int result = Success, i, x, y; REQUEST_AT_LEAST_SIZE(xvPutVideoReq); - if(!(draw = (XineramaRes *)SecurityLookupIDByClass( + if(!(draw = (PanoramiXRes *)SecurityLookupIDByClass( client, stuff->drawable, XRC_DRAWABLE, SecurityWriteAccess))) return BadDrawable; - if(!(gc = (XineramaRes *)SecurityLookupIDByType( + if(!(gc = (PanoramiXRes *)SecurityLookupIDByType( client, stuff->gc, XRT_GC, SecurityReadAccess))) return BadGC; - if(!(port = (XineramaRes *)SecurityLookupIDByType( + if(!(port = (PanoramiXRes *)SecurityLookupIDByType( client, stuff->port, XvXRTPort, SecurityReadAccess))) return _XvBadPort; @@ -2050,8 +2050,8 @@ XineramaXvPutVideo(ClientPtr client) stuff->drw_x = x; stuff->drw_y = y; if(isRoot) { - stuff->drw_x -= xineramaDataPtr[i].x; - stuff->drw_y -= xineramaDataPtr[i].y; + stuff->drw_x -= panoramiXdataPtr[i].x; + stuff->drw_y -= panoramiXdataPtr[i].y; } result = ProcXvPutVideo(client); @@ -2064,21 +2064,21 @@ static int XineramaXvPutStill(ClientPtr client) { REQUEST(xvPutImageReq); - XineramaRes *draw, *gc, *port; + PanoramiXRes *draw, *gc, *port; Bool isRoot; int result = Success, i, x, y; REQUEST_AT_LEAST_SIZE(xvPutImageReq); - if(!(draw = (XineramaRes *)SecurityLookupIDByClass( + if(!(draw = (PanoramiXRes *)SecurityLookupIDByClass( client, stuff->drawable, XRC_DRAWABLE, SecurityWriteAccess))) return BadDrawable; - if(!(gc = (XineramaRes *)SecurityLookupIDByType( + if(!(gc = (PanoramiXRes *)SecurityLookupIDByType( client, stuff->gc, XRT_GC, SecurityReadAccess))) return BadGC; - if(!(port = (XineramaRes *)SecurityLookupIDByType( + if(!(port = (PanoramiXRes *)SecurityLookupIDByType( client, stuff->port, XvXRTPort, SecurityReadAccess))) return _XvBadPort; @@ -2096,8 +2096,8 @@ XineramaXvPutStill(ClientPtr client) stuff->drw_x = x; stuff->drw_y = y; if(isRoot) { - stuff->drw_x -= xineramaDataPtr[i].x; - stuff->drw_y -= xineramaDataPtr[i].y; + stuff->drw_x -= panoramiXdataPtr[i].x; + stuff->drw_y -= panoramiXdataPtr[i].y; } result = ProcXvPutStill(client); @@ -2115,7 +2115,7 @@ void XineramifyXv(void) XvAttributePtr pAttr; XvScreenPtr xvsp; Bool isOverlay, hasOverlay; - XineramaRes *port; + PanoramiXRes *port; XvAdaptorPtr MatchingAdaptors[MAXSCREENS]; int i, j, k, l; @@ -2141,7 +2141,7 @@ void XineramifyXv(void) } } - for(j = 1; j < XineramaNumScreens; j++) { + for(j = 1; j < PanoramiXNumScreens; j++) { pScreen = screenInfo.screens[j]; xvsp = (XvScreenPtr)pScreen->devPrivates[XvScreenIndex].ptr; @@ -2199,12 +2199,12 @@ void XineramifyXv(void) /* now create a resource for each port */ for(j = 0; j < refAdapt->nPorts; j++) { - if(!(port = xalloc(sizeof(XineramaRes)))) + if(!(port = xalloc(sizeof(PanoramiXRes)))) break; port->info[0].id = MatchingAdaptors[0]->base_id + j; AddResource(port->info[0].id, XvXRTPort, port); - for(k = 1; k < XineramaNumScreens; k++) { + for(k = 1; k < PanoramiXNumScreens; k++) { if(MatchingAdaptors[k] && (MatchingAdaptors[k]->nPorts > j)) port->info[k].id = MatchingAdaptors[k]->base_id + j; else diff --git a/Xext/xvmain.c b/Xext/xvmain.c index 866fcd7da..5e163827d 100644 --- a/Xext/xvmain.c +++ b/Xext/xvmain.c @@ -1,4 +1,4 @@ -/* $XdotOrg$ */ +/* $XdotOrg: xc/programs/Xserver/Xext/xvmain.c,v 1.1.4.2 2003/12/18 19:29:12 kaleb Exp $ */ /*********************************************************** Copyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts, and the Massachusetts Institute of Technology, Cambridge, Massachusetts. @@ -100,8 +100,8 @@ SOFTWARE. #endif #ifdef XINERAMA -#include "xinerama.h" -#include "xineramaSrv.h" +#include "panoramiX.h" +#include "panoramiXsrv.h" #include "xvdisp.h" #endif |