Lines Matching +full:client +full:- +full:id

29 #include <dix-config.h>
55 PanoramiXCreateWindow(ClientPtr client) in PanoramiXCreateWindow() argument
71 len = client->req_len - bytes_to_int32(sizeof(xCreateWindowReq)); in PanoramiXCreateWindow()
72 if (Ones(stuff->mask) != len) in PanoramiXCreateWindow()
75 result = dixLookupResourceByType((void **) &parent, stuff->parent, in PanoramiXCreateWindow()
76 XRT_WINDOW, client, DixWriteAccess); in PanoramiXCreateWindow()
80 if (stuff->class == CopyFromParent) in PanoramiXCreateWindow()
81 stuff->class = parent->u.win.class; in PanoramiXCreateWindow()
83 if ((stuff->class == InputOnly) && (stuff->mask & (~INPUTONLY_LEGAL_MASK))) in PanoramiXCreateWindow()
86 if ((Mask) stuff->mask & CWBackPixmap) { in PanoramiXCreateWindow()
87 pback_offset = Ones((Mask) stuff->mask & (CWBackPixmap - 1)); in PanoramiXCreateWindow()
91 XRT_PIXMAP, client, DixReadAccess); in PanoramiXCreateWindow()
96 if ((Mask) stuff->mask & CWBorderPixmap) { in PanoramiXCreateWindow()
97 pbord_offset = Ones((Mask) stuff->mask & (CWBorderPixmap - 1)); in PanoramiXCreateWindow()
101 XRT_PIXMAP, client, DixReadAccess); in PanoramiXCreateWindow()
106 if ((Mask) stuff->mask & CWColormap) { in PanoramiXCreateWindow()
107 cmap_offset = Ones((Mask) stuff->mask & (CWColormap - 1)); in PanoramiXCreateWindow()
111 XRT_COLORMAP, client, in PanoramiXCreateWindow()
121 newWin->type = XRT_WINDOW; in PanoramiXCreateWindow()
122 newWin->u.win.visibility = VisibilityNotViewable; in PanoramiXCreateWindow()
123 newWin->u.win.class = stuff->class; in PanoramiXCreateWindow()
124 newWin->u.win.root = FALSE; in PanoramiXCreateWindow()
125 panoramix_setup_ids(newWin, client, stuff->wid); in PanoramiXCreateWindow()
127 if (stuff->class == InputOnly) in PanoramiXCreateWindow()
128 stuff->visual = CopyFromParent; in PanoramiXCreateWindow()
129 orig_visual = stuff->visual; in PanoramiXCreateWindow()
130 orig_x = stuff->x; in PanoramiXCreateWindow()
131 orig_y = stuff->y; in PanoramiXCreateWindow()
132 parentIsRoot = (stuff->parent == screenInfo.screens[0]->root->drawable.id) in PanoramiXCreateWindow()
133 || (stuff->parent == screenInfo.screens[0]->screensaver.wid); in PanoramiXCreateWindow()
135 stuff->wid = newWin->info[j].id; in PanoramiXCreateWindow()
136 stuff->parent = parent->info[j].id; in PanoramiXCreateWindow()
138 stuff->x = orig_x - screenInfo.screens[j]->x; in PanoramiXCreateWindow()
139 stuff->y = orig_y - screenInfo.screens[j]->y; in PanoramiXCreateWindow()
142 *((CARD32 *) &stuff[1] + pback_offset) = backPix->info[j].id; in PanoramiXCreateWindow()
144 *((CARD32 *) &stuff[1] + pbord_offset) = bordPix->info[j].id; in PanoramiXCreateWindow()
146 *((CARD32 *) &stuff[1] + cmap_offset) = cmap->info[j].id; in PanoramiXCreateWindow()
148 stuff->visual = PanoramiXTranslateVisualID(j, orig_visual); in PanoramiXCreateWindow()
149 result = (*SavedProcVector[X_CreateWindow]) (client); in PanoramiXCreateWindow()
155 AddResource(newWin->info[0].id, XRT_WINDOW, newWin); in PanoramiXCreateWindow()
163 PanoramiXChangeWindowAttributes(ClientPtr client) in PanoramiXChangeWindowAttributes() argument
177 len = client->req_len - bytes_to_int32(sizeof(xChangeWindowAttributesReq)); in PanoramiXChangeWindowAttributes()
178 if (Ones(stuff->valueMask) != len) in PanoramiXChangeWindowAttributes()
181 result = dixLookupResourceByType((void **) &win, stuff->window, in PanoramiXChangeWindowAttributes()
182 XRT_WINDOW, client, DixWriteAccess); in PanoramiXChangeWindowAttributes()
186 if ((win->u.win.class == InputOnly) && in PanoramiXChangeWindowAttributes()
187 (stuff->valueMask & (~INPUTONLY_LEGAL_MASK))) in PanoramiXChangeWindowAttributes()
190 if ((Mask) stuff->valueMask & CWBackPixmap) { in PanoramiXChangeWindowAttributes()
191 pback_offset = Ones((Mask) stuff->valueMask & (CWBackPixmap - 1)); in PanoramiXChangeWindowAttributes()
195 XRT_PIXMAP, client, DixReadAccess); in PanoramiXChangeWindowAttributes()
200 if ((Mask) stuff->valueMask & CWBorderPixmap) { in PanoramiXChangeWindowAttributes()
201 pbord_offset = Ones((Mask) stuff->valueMask & (CWBorderPixmap - 1)); in PanoramiXChangeWindowAttributes()
205 XRT_PIXMAP, client, DixReadAccess); in PanoramiXChangeWindowAttributes()
210 if ((Mask) stuff->valueMask & CWColormap) { in PanoramiXChangeWindowAttributes()
211 cmap_offset = Ones((Mask) stuff->valueMask & (CWColormap - 1)); in PanoramiXChangeWindowAttributes()
215 XRT_COLORMAP, client, in PanoramiXChangeWindowAttributes()
223 stuff->window = win->info[j].id; in PanoramiXChangeWindowAttributes()
225 *((CARD32 *) &stuff[1] + pback_offset) = backPix->info[j].id; in PanoramiXChangeWindowAttributes()
227 *((CARD32 *) &stuff[1] + pbord_offset) = bordPix->info[j].id; in PanoramiXChangeWindowAttributes()
229 *((CARD32 *) &stuff[1] + cmap_offset) = cmap->info[j].id; in PanoramiXChangeWindowAttributes()
230 result = (*SavedProcVector[X_ChangeWindowAttributes]) (client); in PanoramiXChangeWindowAttributes()
237 PanoramiXDestroyWindow(ClientPtr client) in PanoramiXDestroyWindow() argument
246 result = dixLookupResourceByType((void **) &win, stuff->id, XRT_WINDOW, in PanoramiXDestroyWindow()
247 client, DixDestroyAccess); in PanoramiXDestroyWindow()
252 stuff->id = win->info[j].id; in PanoramiXDestroyWindow()
253 result = (*SavedProcVector[X_DestroyWindow]) (client); in PanoramiXDestroyWindow()
265 PanoramiXDestroySubwindows(ClientPtr client) in PanoramiXDestroySubwindows() argument
274 result = dixLookupResourceByType((void **) &win, stuff->id, XRT_WINDOW, in PanoramiXDestroySubwindows()
275 client, DixDestroyAccess); in PanoramiXDestroySubwindows()
280 stuff->id = win->info[j].id; in PanoramiXDestroySubwindows()
281 result = (*SavedProcVector[X_DestroySubwindows]) (client); in PanoramiXDestroySubwindows()
293 PanoramiXChangeSaveSet(ClientPtr client) in PanoramiXChangeSaveSet() argument
302 result = dixLookupResourceByType((void **) &win, stuff->window, in PanoramiXChangeSaveSet()
303 XRT_WINDOW, client, DixReadAccess); in PanoramiXChangeSaveSet()
308 stuff->window = win->info[j].id; in PanoramiXChangeSaveSet()
309 result = (*SavedProcVector[X_ChangeSaveSet]) (client); in PanoramiXChangeSaveSet()
318 PanoramiXReparentWindow(ClientPtr client) in PanoramiXReparentWindow() argument
329 result = dixLookupResourceByType((void **) &win, stuff->window, in PanoramiXReparentWindow()
330 XRT_WINDOW, client, DixWriteAccess); in PanoramiXReparentWindow()
334 result = dixLookupResourceByType((void **) &parent, stuff->parent, in PanoramiXReparentWindow()
335 XRT_WINDOW, client, DixWriteAccess); in PanoramiXReparentWindow()
339 x = stuff->x; in PanoramiXReparentWindow()
340 y = stuff->y; in PanoramiXReparentWindow()
341 parentIsRoot = (stuff->parent == screenInfo.screens[0]->root->drawable.id) in PanoramiXReparentWindow()
342 || (stuff->parent == screenInfo.screens[0]->screensaver.wid); in PanoramiXReparentWindow()
344 stuff->window = win->info[j].id; in PanoramiXReparentWindow()
345 stuff->parent = parent->info[j].id; in PanoramiXReparentWindow()
347 stuff->x = x - screenInfo.screens[j]->x; in PanoramiXReparentWindow()
348 stuff->y = y - screenInfo.screens[j]->y; in PanoramiXReparentWindow()
350 result = (*SavedProcVector[X_ReparentWindow]) (client); in PanoramiXReparentWindow()
359 PanoramiXMapWindow(ClientPtr client) in PanoramiXMapWindow() argument
368 result = dixLookupResourceByType((void **) &win, stuff->id, in PanoramiXMapWindow()
369 XRT_WINDOW, client, DixReadAccess); in PanoramiXMapWindow()
374 stuff->id = win->info[j].id; in PanoramiXMapWindow()
375 result = (*SavedProcVector[X_MapWindow]) (client); in PanoramiXMapWindow()
384 PanoramiXMapSubwindows(ClientPtr client) in PanoramiXMapSubwindows() argument
393 result = dixLookupResourceByType((void **) &win, stuff->id, in PanoramiXMapSubwindows()
394 XRT_WINDOW, client, DixReadAccess); in PanoramiXMapSubwindows()
399 stuff->id = win->info[j].id; in PanoramiXMapSubwindows()
400 result = (*SavedProcVector[X_MapSubwindows]) (client); in PanoramiXMapSubwindows()
409 PanoramiXUnmapWindow(ClientPtr client) in PanoramiXUnmapWindow() argument
418 result = dixLookupResourceByType((void **) &win, stuff->id, in PanoramiXUnmapWindow()
419 XRT_WINDOW, client, DixReadAccess); in PanoramiXUnmapWindow()
424 stuff->id = win->info[j].id; in PanoramiXUnmapWindow()
425 result = (*SavedProcVector[X_UnmapWindow]) (client); in PanoramiXUnmapWindow()
434 PanoramiXUnmapSubwindows(ClientPtr client) in PanoramiXUnmapSubwindows() argument
443 result = dixLookupResourceByType((void **) &win, stuff->id, in PanoramiXUnmapSubwindows()
444 XRT_WINDOW, client, DixReadAccess); in PanoramiXUnmapSubwindows()
449 stuff->id = win->info[j].id; in PanoramiXUnmapSubwindows()
450 result = (*SavedProcVector[X_UnmapSubwindows]) (client); in PanoramiXUnmapSubwindows()
459 PanoramiXConfigureWindow(ClientPtr client) in PanoramiXConfigureWindow() argument
465 int x_offset = -1; in PanoramiXConfigureWindow()
466 int y_offset = -1; in PanoramiXConfigureWindow()
472 len = client->req_len - bytes_to_int32(sizeof(xConfigureWindowReq)); in PanoramiXConfigureWindow()
473 if (Ones(stuff->mask) != len) in PanoramiXConfigureWindow()
477 result = dixLookupResourceByType((void **) &pWin, stuff->window, in PanoramiXConfigureWindow()
478 RT_WINDOW, client, DixWriteAccess); in PanoramiXConfigureWindow()
482 result = dixLookupResourceByType((void **) &win, stuff->window, in PanoramiXConfigureWindow()
483 XRT_WINDOW, client, DixWriteAccess); in PanoramiXConfigureWindow()
487 if ((Mask) stuff->mask & CWSibling) { in PanoramiXConfigureWindow()
490 sib_offset = Ones((Mask) stuff->mask & (CWSibling - 1)); in PanoramiXConfigureWindow()
493 client, DixReadAccess); in PanoramiXConfigureWindow()
499 if (pWin->parent && ((pWin->parent == screenInfo.screens[0]->root) || in PanoramiXConfigureWindow()
500 (pWin->parent->drawable.id == in PanoramiXConfigureWindow()
501 screenInfo.screens[0]->screensaver.wid))) { in PanoramiXConfigureWindow()
502 if ((Mask) stuff->mask & CWX) { in PanoramiXConfigureWindow()
506 if ((Mask) stuff->mask & CWY) { in PanoramiXConfigureWindow()
507 y_offset = (x_offset == -1) ? 0 : 1; in PanoramiXConfigureWindow()
515 stuff->window = win->info[j].id; in PanoramiXConfigureWindow()
517 *((CARD32 *) &stuff[1] + sib_offset) = sib->info[j].id; in PanoramiXConfigureWindow()
519 *((CARD32 *) &stuff[1] + x_offset) = x - screenInfo.screens[j]->x; in PanoramiXConfigureWindow()
521 *((CARD32 *) &stuff[1] + y_offset) = y - screenInfo.screens[j]->y; in PanoramiXConfigureWindow()
522 result = (*SavedProcVector[X_ConfigureWindow]) (client); in PanoramiXConfigureWindow()
531 PanoramiXCirculateWindow(ClientPtr client) in PanoramiXCirculateWindow() argument
540 result = dixLookupResourceByType((void **) &win, stuff->window, in PanoramiXCirculateWindow()
541 XRT_WINDOW, client, DixWriteAccess); in PanoramiXCirculateWindow()
546 stuff->window = win->info[j].id; in PanoramiXCirculateWindow()
547 result = (*SavedProcVector[X_CirculateWindow]) (client); in PanoramiXCirculateWindow()
556 PanoramiXGetGeometry(ClientPtr client) in PanoramiXGetGeometry() argument
565 rc = dixLookupDrawable(&pDraw, stuff->id, client, M_ANY, DixGetAttrAccess); in PanoramiXGetGeometry()
571 .sequenceNumber = client->sequence, in PanoramiXGetGeometry()
573 .root = screenInfo.screens[0]->root->drawable.id, in PanoramiXGetGeometry()
574 .depth = pDraw->depth, in PanoramiXGetGeometry()
575 .width = pDraw->width, in PanoramiXGetGeometry()
576 .height = pDraw->height, in PanoramiXGetGeometry()
582 if (stuff->id == rep.root) { in PanoramiXGetGeometry()
586 rep.width = root->pixWidth; in PanoramiXGetGeometry()
587 rep.height = root->pixHeight; in PanoramiXGetGeometry()
589 else if (WindowDrawable(pDraw->type)) { in PanoramiXGetGeometry()
592 rep.x = pWin->origin.x - wBorderWidth(pWin); in PanoramiXGetGeometry()
593 rep.y = pWin->origin.y - wBorderWidth(pWin); in PanoramiXGetGeometry()
594 if ((pWin->parent == screenInfo.screens[0]->root) || in PanoramiXGetGeometry()
595 (pWin->parent->drawable.id == in PanoramiXGetGeometry()
596 screenInfo.screens[0]->screensaver.wid)) { in PanoramiXGetGeometry()
597 rep.x += screenInfo.screens[0]->x; in PanoramiXGetGeometry()
598 rep.y += screenInfo.screens[0]->y; in PanoramiXGetGeometry()
600 rep.borderWidth = pWin->borderWidth; in PanoramiXGetGeometry()
603 WriteReplyToClient(client, sizeof(xGetGeometryReply), &rep); in PanoramiXGetGeometry()
608 PanoramiXTranslateCoords(ClientPtr client) in PanoramiXTranslateCoords() argument
618 rc = dixLookupWindow(&pWin, stuff->srcWid, client, DixReadAccess); in PanoramiXTranslateCoords()
621 rc = dixLookupWindow(&pDst, stuff->dstWid, client, DixReadAccess); in PanoramiXTranslateCoords()
626 .sequenceNumber = client->sequence, in PanoramiXTranslateCoords()
632 if ((pWin == screenInfo.screens[0]->root) || in PanoramiXTranslateCoords()
633 (pWin->drawable.id == screenInfo.screens[0]->screensaver.wid)) { in PanoramiXTranslateCoords()
634 x = stuff->srcX - screenInfo.screens[0]->x; in PanoramiXTranslateCoords()
635 y = stuff->srcY - screenInfo.screens[0]->y; in PanoramiXTranslateCoords()
638 x = pWin->drawable.x + stuff->srcX; in PanoramiXTranslateCoords()
639 y = pWin->drawable.y + stuff->srcY; in PanoramiXTranslateCoords()
641 pWin = pDst->firstChild; in PanoramiXTranslateCoords()
645 if ((pWin->mapped) && in PanoramiXTranslateCoords()
646 (x >= pWin->drawable.x - wBorderWidth(pWin)) && in PanoramiXTranslateCoords()
647 (x < pWin->drawable.x + (int) pWin->drawable.width + in PanoramiXTranslateCoords()
649 (y >= pWin->drawable.y - wBorderWidth(pWin)) && in PanoramiXTranslateCoords()
650 (y < pWin->drawable.y + (int) pWin->drawable.height + in PanoramiXTranslateCoords()
658 x - pWin->drawable.x, in PanoramiXTranslateCoords()
659 y - pWin->drawable.y, &box)) in PanoramiXTranslateCoords()
661 rep.child = pWin->drawable.id; in PanoramiXTranslateCoords()
665 pWin = pWin->nextSib; in PanoramiXTranslateCoords()
667 rep.dstX = x - pDst->drawable.x; in PanoramiXTranslateCoords()
668 rep.dstY = y - pDst->drawable.y; in PanoramiXTranslateCoords()
669 if ((pDst == screenInfo.screens[0]->root) || in PanoramiXTranslateCoords()
670 (pDst->drawable.id == screenInfo.screens[0]->screensaver.wid)) { in PanoramiXTranslateCoords()
671 rep.dstX += screenInfo.screens[0]->x; in PanoramiXTranslateCoords()
672 rep.dstY += screenInfo.screens[0]->y; in PanoramiXTranslateCoords()
675 WriteReplyToClient(client, sizeof(xTranslateCoordsReply), &rep); in PanoramiXTranslateCoords()
680 PanoramiXCreatePixmap(ClientPtr client) in PanoramiXCreatePixmap() argument
688 client->errorValue = stuff->pid; in PanoramiXCreatePixmap()
690 result = dixLookupResourceByClass((void **) &refDraw, stuff->drawable, in PanoramiXCreatePixmap()
691 XRC_DRAWABLE, client, DixReadAccess); in PanoramiXCreatePixmap()
698 newPix->type = XRT_PIXMAP; in PanoramiXCreatePixmap()
699 newPix->u.pix.shared = FALSE; in PanoramiXCreatePixmap()
700 panoramix_setup_ids(newPix, client, stuff->pid); in PanoramiXCreatePixmap()
703 stuff->pid = newPix->info[j].id; in PanoramiXCreatePixmap()
704 stuff->drawable = refDraw->info[j].id; in PanoramiXCreatePixmap()
705 result = (*SavedProcVector[X_CreatePixmap]) (client); in PanoramiXCreatePixmap()
711 AddResource(newPix->info[0].id, XRT_PIXMAP, newPix); in PanoramiXCreatePixmap()
719 PanoramiXFreePixmap(ClientPtr client) in PanoramiXFreePixmap() argument
728 client->errorValue = stuff->id; in PanoramiXFreePixmap()
730 result = dixLookupResourceByType((void **) &pix, stuff->id, XRT_PIXMAP, in PanoramiXFreePixmap()
731 client, DixDestroyAccess); in PanoramiXFreePixmap()
736 stuff->id = pix->info[j].id; in PanoramiXFreePixmap()
737 result = (*SavedProcVector[X_FreePixmap]) (client); in PanoramiXFreePixmap()
749 PanoramiXCreateGC(ClientPtr client) in PanoramiXCreateGC() argument
764 client->errorValue = stuff->gc; in PanoramiXCreateGC()
765 len = client->req_len - bytes_to_int32(sizeof(xCreateGCReq)); in PanoramiXCreateGC()
766 if (Ones(stuff->mask) != len) in PanoramiXCreateGC()
769 result = dixLookupResourceByClass((void **) &refDraw, stuff->drawable, in PanoramiXCreateGC()
770 XRC_DRAWABLE, client, DixReadAccess); in PanoramiXCreateGC()
774 if ((Mask) stuff->mask & GCTile) { in PanoramiXCreateGC()
775 tile_offset = Ones((Mask) stuff->mask & (GCTile - 1)); in PanoramiXCreateGC()
778 client, DixReadAccess); in PanoramiXCreateGC()
783 if ((Mask) stuff->mask & GCStipple) { in PanoramiXCreateGC()
784 stip_offset = Ones((Mask) stuff->mask & (GCStipple - 1)); in PanoramiXCreateGC()
787 client, DixReadAccess); in PanoramiXCreateGC()
792 if ((Mask) stuff->mask & GCClipMask) { in PanoramiXCreateGC()
793 clip_offset = Ones((Mask) stuff->mask & (GCClipMask - 1)); in PanoramiXCreateGC()
796 client, DixReadAccess); in PanoramiXCreateGC()
805 newGC->type = XRT_GC; in PanoramiXCreateGC()
806 panoramix_setup_ids(newGC, client, stuff->gc); in PanoramiXCreateGC()
809 stuff->gc = newGC->info[j].id; in PanoramiXCreateGC()
810 stuff->drawable = refDraw->info[j].id; in PanoramiXCreateGC()
812 *((CARD32 *) &stuff[1] + tile_offset) = tile->info[j].id; in PanoramiXCreateGC()
814 *((CARD32 *) &stuff[1] + stip_offset) = stip->info[j].id; in PanoramiXCreateGC()
816 *((CARD32 *) &stuff[1] + clip_offset) = clip->info[j].id; in PanoramiXCreateGC()
817 result = (*SavedProcVector[X_CreateGC]) (client); in PanoramiXCreateGC()
823 AddResource(newGC->info[0].id, XRT_GC, newGC); in PanoramiXCreateGC()
831 PanoramiXChangeGC(ClientPtr client) in PanoramiXChangeGC() argument
845 len = client->req_len - bytes_to_int32(sizeof(xChangeGCReq)); in PanoramiXChangeGC()
846 if (Ones(stuff->mask) != len) in PanoramiXChangeGC()
849 result = dixLookupResourceByType((void **) &gc, stuff->gc, XRT_GC, in PanoramiXChangeGC()
850 client, DixReadAccess); in PanoramiXChangeGC()
854 if ((Mask) stuff->mask & GCTile) { in PanoramiXChangeGC()
855 tile_offset = Ones((Mask) stuff->mask & (GCTile - 1)); in PanoramiXChangeGC()
858 client, DixReadAccess); in PanoramiXChangeGC()
863 if ((Mask) stuff->mask & GCStipple) { in PanoramiXChangeGC()
864 stip_offset = Ones((Mask) stuff->mask & (GCStipple - 1)); in PanoramiXChangeGC()
867 client, DixReadAccess); in PanoramiXChangeGC()
872 if ((Mask) stuff->mask & GCClipMask) { in PanoramiXChangeGC()
873 clip_offset = Ones((Mask) stuff->mask & (GCClipMask - 1)); in PanoramiXChangeGC()
876 client, DixReadAccess); in PanoramiXChangeGC()
883 stuff->gc = gc->info[j].id; in PanoramiXChangeGC()
885 *((CARD32 *) &stuff[1] + tile_offset) = tile->info[j].id; in PanoramiXChangeGC()
887 *((CARD32 *) &stuff[1] + stip_offset) = stip->info[j].id; in PanoramiXChangeGC()
889 *((CARD32 *) &stuff[1] + clip_offset) = clip->info[j].id; in PanoramiXChangeGC()
890 result = (*SavedProcVector[X_ChangeGC]) (client); in PanoramiXChangeGC()
899 PanoramiXCopyGC(ClientPtr client) in PanoramiXCopyGC() argument
908 result = dixLookupResourceByType((void **) &srcGC, stuff->srcGC, XRT_GC, in PanoramiXCopyGC()
909 client, DixReadAccess); in PanoramiXCopyGC()
913 result = dixLookupResourceByType((void **) &dstGC, stuff->dstGC, XRT_GC, in PanoramiXCopyGC()
914 client, DixWriteAccess); in PanoramiXCopyGC()
919 stuff->srcGC = srcGC->info[j].id; in PanoramiXCopyGC()
920 stuff->dstGC = dstGC->info[j].id; in PanoramiXCopyGC()
921 result = (*SavedProcVector[X_CopyGC]) (client); in PanoramiXCopyGC()
930 PanoramiXSetDashes(ClientPtr client) in PanoramiXSetDashes() argument
937 REQUEST_FIXED_SIZE(xSetDashesReq, stuff->nDashes); in PanoramiXSetDashes()
939 result = dixLookupResourceByType((void **) &gc, stuff->gc, XRT_GC, in PanoramiXSetDashes()
940 client, DixWriteAccess); in PanoramiXSetDashes()
945 stuff->gc = gc->info[j].id; in PanoramiXSetDashes()
946 result = (*SavedProcVector[X_SetDashes]) (client); in PanoramiXSetDashes()
955 PanoramiXSetClipRectangles(ClientPtr client) in PanoramiXSetClipRectangles() argument
964 result = dixLookupResourceByType((void **) &gc, stuff->gc, XRT_GC, in PanoramiXSetClipRectangles()
965 client, DixWriteAccess); in PanoramiXSetClipRectangles()
970 stuff->gc = gc->info[j].id; in PanoramiXSetClipRectangles()
971 result = (*SavedProcVector[X_SetClipRectangles]) (client); in PanoramiXSetClipRectangles()
980 PanoramiXFreeGC(ClientPtr client) in PanoramiXFreeGC() argument
989 result = dixLookupResourceByType((void **) &gc, stuff->id, XRT_GC, in PanoramiXFreeGC()
990 client, DixDestroyAccess); in PanoramiXFreeGC()
995 stuff->id = gc->info[j].id; in PanoramiXFreeGC()
996 result = (*SavedProcVector[X_FreeGC]) (client); in PanoramiXFreeGC()
1008 PanoramiXClearToBackground(ClientPtr client) in PanoramiXClearToBackground() argument
1018 result = dixLookupResourceByType((void **) &win, stuff->window, in PanoramiXClearToBackground()
1019 XRT_WINDOW, client, DixWriteAccess); in PanoramiXClearToBackground()
1023 x = stuff->x; in PanoramiXClearToBackground()
1024 y = stuff->y; in PanoramiXClearToBackground()
1025 isRoot = win->u.win.root; in PanoramiXClearToBackground()
1027 stuff->window = win->info[j].id; in PanoramiXClearToBackground()
1029 stuff->x = x - screenInfo.screens[j]->x; in PanoramiXClearToBackground()
1030 stuff->y = y - screenInfo.screens[j]->y; in PanoramiXClearToBackground()
1032 result = (*SavedProcVector[X_ClearArea]) (client); in PanoramiXClearToBackground()
1051 PanoramiXCopyArea(ClientPtr client) in PanoramiXCopyArea() argument
1063 result = dixLookupResourceByClass((void **) &src, stuff->srcDrawable, in PanoramiXCopyArea()
1064 XRC_DRAWABLE, client, DixReadAccess); in PanoramiXCopyArea()
1070 result = dixLookupResourceByClass((void **) &dst, stuff->dstDrawable, in PanoramiXCopyArea()
1071 XRC_DRAWABLE, client, DixWriteAccess); in PanoramiXCopyArea()
1078 return (*SavedProcVector[X_CopyArea]) (client); in PanoramiXCopyArea()
1080 result = dixLookupResourceByType((void **) &gc, stuff->gc, XRT_GC, in PanoramiXCopyArea()
1081 client, DixReadAccess); in PanoramiXCopyArea()
1085 if ((dst->type == XRT_WINDOW) && dst->u.win.root) in PanoramiXCopyArea()
1087 if ((src->type == XRT_WINDOW) && src->u.win.root) in PanoramiXCopyArea()
1090 srcx = stuff->srcX; in PanoramiXCopyArea()
1091 srcy = stuff->srcY; in PanoramiXCopyArea()
1092 dstx = stuff->dstX; in PanoramiXCopyArea()
1093 dsty = stuff->dstY; in PanoramiXCopyArea()
1094 width = stuff->width; in PanoramiXCopyArea()
1095 height = stuff->height; in PanoramiXCopyArea()
1096 if ((dst->type == XRT_PIXMAP) && (src->type == XRT_WINDOW)) { in PanoramiXCopyArea()
1104 rc = dixLookupDrawable(drawables + j, src->info[j].id, client, 0, in PanoramiXCopyArea()
1108 drawables[j]->pScreen->SourceValidate(drawables[j], 0, 0, in PanoramiXCopyArea()
1109 drawables[j]->width, in PanoramiXCopyArea()
1110 drawables[j]->height, in PanoramiXCopyArea()
1114 pitch = PixmapBytePad(width, drawables[0]->depth); in PanoramiXCopyArea()
1122 stuff->gc = gc->info[j].id; in PanoramiXCopyArea()
1123 VALIDATE_DRAWABLE_AND_GC(dst->info[j].id, pDst, DixWriteAccess); in PanoramiXCopyArea()
1124 if (drawables[0]->depth != pDst->depth) { in PanoramiXCopyArea()
1125 client->errorValue = stuff->dstDrawable; in PanoramiXCopyArea()
1130 (*pGC->ops->PutImage) (pDst, pGC, pDst->depth, dstx, dsty, in PanoramiXCopyArea()
1137 if (pGC->graphicsExposures) { in PanoramiXCopyArea()
1142 dx = drawables[0]->x; in PanoramiXCopyArea()
1143 dy = drawables[0]->y; in PanoramiXCopyArea()
1145 dx += screenInfo.screens[0]->x; in PanoramiXCopyArea()
1146 dy += screenInfo.screens[0]->y; in PanoramiXCopyArea()
1156 /* subtract the (screen-space) clips of the source drawables */ in PanoramiXCopyArea()
1161 if (pGC->subWindowMode == IncludeInferiors) in PanoramiXCopyArea()
1164 sd = &((WindowPtr)drawables[j])->clipList; in PanoramiXCopyArea()
1167 RegionTranslate(&rgn, -screen->x, -screen->y); in PanoramiXCopyArea()
1172 RegionTranslate(&rgn, screen->x, screen->y); in PanoramiXCopyArea()
1174 if (pGC->subWindowMode == IncludeInferiors) in PanoramiXCopyArea()
1178 /* -dx/-dy to get back to dest-relative, plus request offsets */ in PanoramiXCopyArea()
1179 RegionTranslate(&rgn, -dx + dstx, -dy + dsty); in PanoramiXCopyArea()
1182 RegionIntersect(&rgn, &rgn, pGC->pCompositeClip); in PanoramiXCopyArea()
1185 SendGraphicsExpose(client, &rgn, dst->info[0].id, X_CopyArea, 0); in PanoramiXCopyArea()
1199 stuff->dstDrawable = dst->info[j].id; in PanoramiXCopyArea()
1200 stuff->srcDrawable = src->info[j].id; in PanoramiXCopyArea()
1201 stuff->gc = gc->info[j].id; in PanoramiXCopyArea()
1203 stuff->srcX = srcx - screenInfo.screens[j]->x; in PanoramiXCopyArea()
1204 stuff->srcY = srcy - screenInfo.screens[j]->y; in PanoramiXCopyArea()
1207 stuff->dstX = dstx - screenInfo.screens[j]->x; in PanoramiXCopyArea()
1208 stuff->dstY = dsty - screenInfo.screens[j]->y; in PanoramiXCopyArea()
1211 VALIDATE_DRAWABLE_AND_GC(stuff->dstDrawable, pDst, DixWriteAccess); in PanoramiXCopyArea()
1213 if (stuff->dstDrawable != stuff->srcDrawable) { in PanoramiXCopyArea()
1214 rc = dixLookupDrawable(&pSrc, stuff->srcDrawable, client, 0, in PanoramiXCopyArea()
1219 if ((pDst->pScreen != pSrc->pScreen) || in PanoramiXCopyArea()
1220 (pDst->depth != pSrc->depth)) { in PanoramiXCopyArea()
1221 client->errorValue = stuff->dstDrawable; in PanoramiXCopyArea()
1228 pRgn = (*pGC->ops->CopyArea) (pSrc, pDst, pGC, in PanoramiXCopyArea()
1229 stuff->srcX, stuff->srcY, in PanoramiXCopyArea()
1230 stuff->width, stuff->height, in PanoramiXCopyArea()
1231 stuff->dstX, stuff->dstY); in PanoramiXCopyArea()
1232 if (pGC->graphicsExposures && pRgn) { in PanoramiXCopyArea()
1235 screenInfo.screens[j]->x, in PanoramiXCopyArea()
1236 screenInfo.screens[j]->y); in PanoramiXCopyArea()
1246 if (pGC->graphicsExposures) { in PanoramiXCopyArea()
1250 SendGraphicsExpose(client, &totalReg, stuff->dstDrawable, in PanoramiXCopyArea()
1260 PanoramiXCopyPlane(ClientPtr client) in PanoramiXCopyPlane() argument
1275 rc = dixLookupResourceByClass((void **) &src, stuff->srcDrawable, in PanoramiXCopyPlane()
1276 XRC_DRAWABLE, client, DixReadAccess); in PanoramiXCopyPlane()
1282 rc = dixLookupResourceByClass((void **) &dst, stuff->dstDrawable, in PanoramiXCopyPlane()
1283 XRC_DRAWABLE, client, DixWriteAccess); in PanoramiXCopyPlane()
1290 return (*SavedProcVector[X_CopyPlane]) (client); in PanoramiXCopyPlane()
1292 rc = dixLookupResourceByType((void **) &gc, stuff->gc, XRT_GC, in PanoramiXCopyPlane()
1293 client, DixReadAccess); in PanoramiXCopyPlane()
1297 if ((dst->type == XRT_WINDOW) && dst->u.win.root) in PanoramiXCopyPlane()
1299 if ((src->type == XRT_WINDOW) && src->u.win.root) in PanoramiXCopyPlane()
1302 srcx = stuff->srcX; in PanoramiXCopyPlane()
1303 srcy = stuff->srcY; in PanoramiXCopyPlane()
1304 dstx = stuff->dstX; in PanoramiXCopyPlane()
1305 dsty = stuff->dstY; in PanoramiXCopyPlane()
1311 stuff->dstDrawable = dst->info[j].id; in PanoramiXCopyPlane()
1312 stuff->srcDrawable = src->info[j].id; in PanoramiXCopyPlane()
1313 stuff->gc = gc->info[j].id; in PanoramiXCopyPlane()
1315 stuff->srcX = srcx - screenInfo.screens[j]->x; in PanoramiXCopyPlane()
1316 stuff->srcY = srcy - screenInfo.screens[j]->y; in PanoramiXCopyPlane()
1319 stuff->dstX = dstx - screenInfo.screens[j]->x; in PanoramiXCopyPlane()
1320 stuff->dstY = dsty - screenInfo.screens[j]->y; in PanoramiXCopyPlane()
1323 VALIDATE_DRAWABLE_AND_GC(stuff->dstDrawable, pdstDraw, DixWriteAccess); in PanoramiXCopyPlane()
1324 if (stuff->dstDrawable != stuff->srcDrawable) { in PanoramiXCopyPlane()
1325 rc = dixLookupDrawable(&psrcDraw, stuff->srcDrawable, client, 0, in PanoramiXCopyPlane()
1330 if (pdstDraw->pScreen != psrcDraw->pScreen) { in PanoramiXCopyPlane()
1331 client->errorValue = stuff->dstDrawable; in PanoramiXCopyPlane()
1338 if (stuff->bitPlane == 0 || (stuff->bitPlane & (stuff->bitPlane - 1)) || in PanoramiXCopyPlane()
1339 (stuff->bitPlane > (1L << (psrcDraw->depth - 1)))) { in PanoramiXCopyPlane()
1340 client->errorValue = stuff->bitPlane; in PanoramiXCopyPlane()
1344 pRgn = (*pGC->ops->CopyPlane) (psrcDraw, pdstDraw, pGC, in PanoramiXCopyPlane()
1345 stuff->srcX, stuff->srcY, in PanoramiXCopyPlane()
1346 stuff->width, stuff->height, in PanoramiXCopyPlane()
1347 stuff->dstX, stuff->dstY, in PanoramiXCopyPlane()
1348 stuff->bitPlane); in PanoramiXCopyPlane()
1349 if (pGC->graphicsExposures && pRgn) { in PanoramiXCopyPlane()
1358 if (pGC->graphicsExposures) { in PanoramiXCopyPlane()
1362 SendGraphicsExpose(client, &totalReg, stuff->dstDrawable, in PanoramiXCopyPlane()
1371 PanoramiXPolyPoint(ClientPtr client) in PanoramiXPolyPoint() argument
1382 result = dixLookupResourceByClass((void **) &draw, stuff->drawable, in PanoramiXPolyPoint()
1383 XRC_DRAWABLE, client, DixWriteAccess); in PanoramiXPolyPoint()
1388 return (*SavedProcVector[X_PolyPoint]) (client); in PanoramiXPolyPoint()
1390 result = dixLookupResourceByType((void **) &gc, stuff->gc, XRT_GC, in PanoramiXPolyPoint()
1391 client, DixReadAccess); in PanoramiXPolyPoint()
1395 isRoot = (draw->type == XRT_WINDOW) && draw->u.win.root; in PanoramiXPolyPoint()
1396 npoint = bytes_to_int32((client->req_len << 2) - sizeof(xPolyPointReq)); in PanoramiXPolyPoint()
1406 int x_off = screenInfo.screens[j]->x; in PanoramiXPolyPoint()
1407 int y_off = screenInfo.screens[j]->y; in PanoramiXPolyPoint()
1412 (stuff->coordMode == CoordModePrevious) ? 1 : npoint; in PanoramiXPolyPoint()
1414 while (i--) { in PanoramiXPolyPoint()
1415 pnts->x -= x_off; in PanoramiXPolyPoint()
1416 pnts->y -= y_off; in PanoramiXPolyPoint()
1422 stuff->drawable = draw->info[j].id; in PanoramiXPolyPoint()
1423 stuff->gc = gc->info[j].id; in PanoramiXPolyPoint()
1424 result = (*SavedProcVector[X_PolyPoint]) (client); in PanoramiXPolyPoint()
1436 PanoramiXPolyLine(ClientPtr client) in PanoramiXPolyLine() argument
1447 result = dixLookupResourceByClass((void **) &draw, stuff->drawable, in PanoramiXPolyLine()
1448 XRC_DRAWABLE, client, DixWriteAccess); in PanoramiXPolyLine()
1453 return (*SavedProcVector[X_PolyLine]) (client); in PanoramiXPolyLine()
1455 result = dixLookupResourceByType((void **) &gc, stuff->gc, XRT_GC, in PanoramiXPolyLine()
1456 client, DixReadAccess); in PanoramiXPolyLine()
1461 npoint = bytes_to_int32((client->req_len << 2) - sizeof(xPolyLineReq)); in PanoramiXPolyLine()
1471 int x_off = screenInfo.screens[j]->x; in PanoramiXPolyLine()
1472 int y_off = screenInfo.screens[j]->y; in PanoramiXPolyLine()
1477 (stuff->coordMode == CoordModePrevious) ? 1 : npoint; in PanoramiXPolyLine()
1479 while (i--) { in PanoramiXPolyLine()
1480 pnts->x -= x_off; in PanoramiXPolyLine()
1481 pnts->y -= y_off; in PanoramiXPolyLine()
1487 stuff->drawable = draw->info[j].id; in PanoramiXPolyLine()
1488 stuff->gc = gc->info[j].id; in PanoramiXPolyLine()
1489 result = (*SavedProcVector[X_PolyLine]) (client); in PanoramiXPolyLine()
1501 PanoramiXPolySegment(ClientPtr client) in PanoramiXPolySegment() argument
1512 result = dixLookupResourceByClass((void **) &draw, stuff->drawable, in PanoramiXPolySegment()
1513 XRC_DRAWABLE, client, DixWriteAccess); in PanoramiXPolySegment()
1518 return (*SavedProcVector[X_PolySegment]) (client); in PanoramiXPolySegment()
1520 result = dixLookupResourceByType((void **) &gc, stuff->gc, XRT_GC, in PanoramiXPolySegment()
1521 client, DixReadAccess); in PanoramiXPolySegment()
1527 nsegs = (client->req_len << 2) - sizeof(xPolySegmentReq); in PanoramiXPolySegment()
1540 int x_off = screenInfo.screens[j]->x; in PanoramiXPolySegment()
1541 int y_off = screenInfo.screens[j]->y; in PanoramiXPolySegment()
1546 for (i = nsegs; i--; segs++) { in PanoramiXPolySegment()
1547 segs->x1 -= x_off; in PanoramiXPolySegment()
1548 segs->x2 -= x_off; in PanoramiXPolySegment()
1549 segs->y1 -= y_off; in PanoramiXPolySegment()
1550 segs->y2 -= y_off; in PanoramiXPolySegment()
1555 stuff->drawable = draw->info[j].id; in PanoramiXPolySegment()
1556 stuff->gc = gc->info[j].id; in PanoramiXPolySegment()
1557 result = (*SavedProcVector[X_PolySegment]) (client); in PanoramiXPolySegment()
1569 PanoramiXPolyRectangle(ClientPtr client) in PanoramiXPolyRectangle() argument
1580 result = dixLookupResourceByClass((void **) &draw, stuff->drawable, in PanoramiXPolyRectangle()
1581 XRC_DRAWABLE, client, DixWriteAccess); in PanoramiXPolyRectangle()
1586 return (*SavedProcVector[X_PolyRectangle]) (client); in PanoramiXPolyRectangle()
1588 result = dixLookupResourceByType((void **) &gc, stuff->gc, XRT_GC, in PanoramiXPolyRectangle()
1589 client, DixReadAccess); in PanoramiXPolyRectangle()
1595 nrects = (client->req_len << 2) - sizeof(xPolyRectangleReq); in PanoramiXPolyRectangle()
1609 int x_off = screenInfo.screens[j]->x; in PanoramiXPolyRectangle()
1610 int y_off = screenInfo.screens[j]->y; in PanoramiXPolyRectangle()
1615 for (i = nrects; i--; rects++) { in PanoramiXPolyRectangle()
1616 rects->x -= x_off; in PanoramiXPolyRectangle()
1617 rects->y -= y_off; in PanoramiXPolyRectangle()
1622 stuff->drawable = draw->info[j].id; in PanoramiXPolyRectangle()
1623 stuff->gc = gc->info[j].id; in PanoramiXPolyRectangle()
1624 result = (*SavedProcVector[X_PolyRectangle]) (client); in PanoramiXPolyRectangle()
1636 PanoramiXPolyArc(ClientPtr client) in PanoramiXPolyArc() argument
1647 result = dixLookupResourceByClass((void **) &draw, stuff->drawable, in PanoramiXPolyArc()
1648 XRC_DRAWABLE, client, DixWriteAccess); in PanoramiXPolyArc()
1653 return (*SavedProcVector[X_PolyArc]) (client); in PanoramiXPolyArc()
1655 result = dixLookupResourceByType((void **) &gc, stuff->gc, XRT_GC, in PanoramiXPolyArc()
1656 client, DixReadAccess); in PanoramiXPolyArc()
1662 narcs = (client->req_len << 2) - sizeof(xPolyArcReq); in PanoramiXPolyArc()
1675 int x_off = screenInfo.screens[j]->x; in PanoramiXPolyArc()
1676 int y_off = screenInfo.screens[j]->y; in PanoramiXPolyArc()
1681 for (i = narcs; i--; arcs++) { in PanoramiXPolyArc()
1682 arcs->x -= x_off; in PanoramiXPolyArc()
1683 arcs->y -= y_off; in PanoramiXPolyArc()
1687 stuff->drawable = draw->info[j].id; in PanoramiXPolyArc()
1688 stuff->gc = gc->info[j].id; in PanoramiXPolyArc()
1689 result = (*SavedProcVector[X_PolyArc]) (client); in PanoramiXPolyArc()
1701 PanoramiXFillPoly(ClientPtr client) in PanoramiXFillPoly() argument
1712 result = dixLookupResourceByClass((void **) &draw, stuff->drawable, in PanoramiXFillPoly()
1713 XRC_DRAWABLE, client, DixWriteAccess); in PanoramiXFillPoly()
1718 return (*SavedProcVector[X_FillPoly]) (client); in PanoramiXFillPoly()
1720 result = dixLookupResourceByType((void **) &gc, stuff->gc, XRT_GC, in PanoramiXFillPoly()
1721 client, DixReadAccess); in PanoramiXFillPoly()
1727 count = bytes_to_int32((client->req_len << 2) - sizeof(xFillPolyReq)); in PanoramiXFillPoly()
1738 int x_off = screenInfo.screens[j]->x; in PanoramiXFillPoly()
1739 int y_off = screenInfo.screens[j]->y; in PanoramiXFillPoly()
1743 int i = (stuff->coordMode == CoordModePrevious) ? 1 : count; in PanoramiXFillPoly()
1745 while (i--) { in PanoramiXFillPoly()
1746 pnts->x -= x_off; in PanoramiXFillPoly()
1747 pnts->y -= y_off; in PanoramiXFillPoly()
1753 stuff->drawable = draw->info[j].id; in PanoramiXFillPoly()
1754 stuff->gc = gc->info[j].id; in PanoramiXFillPoly()
1755 result = (*SavedProcVector[X_FillPoly]) (client); in PanoramiXFillPoly()
1767 PanoramiXPolyFillRectangle(ClientPtr client) in PanoramiXPolyFillRectangle() argument
1778 result = dixLookupResourceByClass((void **) &draw, stuff->drawable, in PanoramiXPolyFillRectangle()
1779 XRC_DRAWABLE, client, DixWriteAccess); in PanoramiXPolyFillRectangle()
1784 return (*SavedProcVector[X_PolyFillRectangle]) (client); in PanoramiXPolyFillRectangle()
1786 result = dixLookupResourceByType((void **) &gc, stuff->gc, XRT_GC, in PanoramiXPolyFillRectangle()
1787 client, DixReadAccess); in PanoramiXPolyFillRectangle()
1793 things = (client->req_len << 2) - sizeof(xPolyFillRectangleReq); in PanoramiXPolyFillRectangle()
1807 int x_off = screenInfo.screens[j]->x; in PanoramiXPolyFillRectangle()
1808 int y_off = screenInfo.screens[j]->y; in PanoramiXPolyFillRectangle()
1813 for (i = things; i--; rects++) { in PanoramiXPolyFillRectangle()
1814 rects->x -= x_off; in PanoramiXPolyFillRectangle()
1815 rects->y -= y_off; in PanoramiXPolyFillRectangle()
1820 stuff->drawable = draw->info[j].id; in PanoramiXPolyFillRectangle()
1821 stuff->gc = gc->info[j].id; in PanoramiXPolyFillRectangle()
1822 result = (*SavedProcVector[X_PolyFillRectangle]) (client); in PanoramiXPolyFillRectangle()
1834 PanoramiXPolyFillArc(ClientPtr client) in PanoramiXPolyFillArc() argument
1845 result = dixLookupResourceByClass((void **) &draw, stuff->drawable, in PanoramiXPolyFillArc()
1846 XRC_DRAWABLE, client, DixWriteAccess); in PanoramiXPolyFillArc()
1851 return (*SavedProcVector[X_PolyFillArc]) (client); in PanoramiXPolyFillArc()
1853 result = dixLookupResourceByType((void **) &gc, stuff->gc, XRT_GC, in PanoramiXPolyFillArc()
1854 client, DixReadAccess); in PanoramiXPolyFillArc()
1860 narcs = (client->req_len << 2) - sizeof(xPolyFillArcReq); in PanoramiXPolyFillArc()
1873 int x_off = screenInfo.screens[j]->x; in PanoramiXPolyFillArc()
1874 int y_off = screenInfo.screens[j]->y; in PanoramiXPolyFillArc()
1879 for (i = narcs; i--; arcs++) { in PanoramiXPolyFillArc()
1880 arcs->x -= x_off; in PanoramiXPolyFillArc()
1881 arcs->y -= y_off; in PanoramiXPolyFillArc()
1886 stuff->drawable = draw->info[j].id; in PanoramiXPolyFillArc()
1887 stuff->gc = gc->info[j].id; in PanoramiXPolyFillArc()
1888 result = (*SavedProcVector[X_PolyFillArc]) (client); in PanoramiXPolyFillArc()
1900 PanoramiXPutImage(ClientPtr client) in PanoramiXPutImage() argument
1910 result = dixLookupResourceByClass((void **) &draw, stuff->drawable, in PanoramiXPutImage()
1911 XRC_DRAWABLE, client, DixWriteAccess); in PanoramiXPutImage()
1916 return (*SavedProcVector[X_PutImage]) (client); in PanoramiXPutImage()
1918 result = dixLookupResourceByType((void **) &gc, stuff->gc, XRT_GC, in PanoramiXPutImage()
1919 client, DixReadAccess); in PanoramiXPutImage()
1925 orig_x = stuff->dstX; in PanoramiXPutImage()
1926 orig_y = stuff->dstY; in PanoramiXPutImage()
1929 stuff->dstX = orig_x - screenInfo.screens[j]->x; in PanoramiXPutImage()
1930 stuff->dstY = orig_y - screenInfo.screens[j]->y; in PanoramiXPutImage()
1932 stuff->drawable = draw->info[j].id; in PanoramiXPutImage()
1933 stuff->gc = gc->info[j].id; in PanoramiXPutImage()
1934 result = (*SavedProcVector[X_PutImage]) (client); in PanoramiXPutImage()
1942 PanoramiXGetImage(ClientPtr client) in PanoramiXGetImage() argument
1959 if ((stuff->format != XYPixmap) && (stuff->format != ZPixmap)) { in PanoramiXGetImage()
1960 client->errorValue = stuff->format; in PanoramiXGetImage()
1964 rc = dixLookupResourceByClass((void **) &draw, stuff->drawable, in PanoramiXGetImage()
1965 XRC_DRAWABLE, client, DixReadAccess); in PanoramiXGetImage()
1969 if (draw->type == XRT_PIXMAP) in PanoramiXGetImage()
1970 return (*SavedProcVector[X_GetImage]) (client); in PanoramiXGetImage()
1972 rc = dixLookupDrawable(&pDraw, stuff->drawable, client, 0, DixReadAccess); in PanoramiXGetImage()
1976 if (!((WindowPtr) pDraw)->realized) in PanoramiXGetImage()
1979 x = stuff->x; in PanoramiXGetImage()
1980 y = stuff->y; in PanoramiXGetImage()
1981 w = stuff->width; in PanoramiXGetImage()
1982 h = stuff->height; in PanoramiXGetImage()
1983 format = stuff->format; in PanoramiXGetImage()
1984 planemask = stuff->planeMask; in PanoramiXGetImage()
1996 if (screenInfo.screens[0]->x + pDraw->x + x < 0 || in PanoramiXGetImage()
1997 screenInfo.screens[0]->x + pDraw->x + x + w > PanoramiXPixWidth || in PanoramiXGetImage()
1998 screenInfo.screens[0]->y + pDraw->y + y < 0 || in PanoramiXGetImage()
1999 screenInfo.screens[0]->y + pDraw->y + y + h > PanoramiXPixHeight || in PanoramiXGetImage()
2000 x < -wBorderWidth((WindowPtr) pDraw) || in PanoramiXGetImage()
2001 x + w > wBorderWidth((WindowPtr) pDraw) + (int) pDraw->width || in PanoramiXGetImage()
2002 y < -wBorderWidth((WindowPtr) pDraw) || in PanoramiXGetImage()
2003 y + h > wBorderWidth((WindowPtr) pDraw) + (int) pDraw->height) in PanoramiXGetImage()
2009 rc = dixLookupDrawable(drawables + i, draw->info[i].id, client, 0, in PanoramiXGetImage()
2015 drawables[i]->pScreen->SourceValidate(drawables[i], 0, 0, in PanoramiXGetImage()
2016 drawables[i]->width, in PanoramiXGetImage()
2017 drawables[i]->height, in PanoramiXGetImage()
2023 .sequenceNumber = client->sequence, in PanoramiXGetImage()
2025 .depth = pDraw->depth in PanoramiXGetImage()
2028 widthBytesLine = PixmapBytePad(w, pDraw->depth); in PanoramiXGetImage()
2034 plane = ((Mask) 1) << (pDraw->depth - 1); in PanoramiXGetImage()
2036 length = widthBytesLine * h * Ones(planemask & (plane | (plane - 1))); in PanoramiXGetImage()
2054 WriteReplyToClient(client, sizeof(xGetImageReply), &xgi); in PanoramiXGetImage()
2061 while (h - linesDone > 0) { in PanoramiXGetImage()
2062 nlines = min(linesPerBuf, h - linesDone); in PanoramiXGetImage()
2064 if (pDraw->depth == 1) in PanoramiXGetImage()
2071 WriteToClient(client, (int) (nlines * widthBytesLine), pBuf); in PanoramiXGetImage()
2079 while (h - linesDone > 0) { in PanoramiXGetImage()
2080 nlines = min(linesPerBuf, h - linesDone); in PanoramiXGetImage()
2088 WriteToClient(client, (int)(nlines * widthBytesLine), pBuf); in PanoramiXGetImage()
2104 PanoramiXPolyText8(ClientPtr client) in PanoramiXPolyText8() argument
2115 result = dixLookupResourceByClass((void **) &draw, stuff->drawable, in PanoramiXPolyText8()
2116 XRC_DRAWABLE, client, DixWriteAccess); in PanoramiXPolyText8()
2121 return (*SavedProcVector[X_PolyText8]) (client); in PanoramiXPolyText8()
2123 result = dixLookupResourceByType((void **) &gc, stuff->gc, XRT_GC, in PanoramiXPolyText8()
2124 client, DixReadAccess); in PanoramiXPolyText8()
2130 orig_x = stuff->x; in PanoramiXPolyText8()
2131 orig_y = stuff->y; in PanoramiXPolyText8()
2133 stuff->drawable = draw->info[j].id; in PanoramiXPolyText8()
2134 stuff->gc = gc->info[j].id; in PanoramiXPolyText8()
2136 stuff->x = orig_x - screenInfo.screens[j]->x; in PanoramiXPolyText8()
2137 stuff->y = orig_y - screenInfo.screens[j]->y; in PanoramiXPolyText8()
2139 result = (*SavedProcVector[X_PolyText8]) (client); in PanoramiXPolyText8()
2147 PanoramiXPolyText16(ClientPtr client) in PanoramiXPolyText16() argument
2158 result = dixLookupResourceByClass((void **) &draw, stuff->drawable, in PanoramiXPolyText16()
2159 XRC_DRAWABLE, client, DixWriteAccess); in PanoramiXPolyText16()
2164 return (*SavedProcVector[X_PolyText16]) (client); in PanoramiXPolyText16()
2166 result = dixLookupResourceByType((void **) &gc, stuff->gc, XRT_GC, in PanoramiXPolyText16()
2167 client, DixReadAccess); in PanoramiXPolyText16()
2173 orig_x = stuff->x; in PanoramiXPolyText16()
2174 orig_y = stuff->y; in PanoramiXPolyText16()
2176 stuff->drawable = draw->info[j].id; in PanoramiXPolyText16()
2177 stuff->gc = gc->info[j].id; in PanoramiXPolyText16()
2179 stuff->x = orig_x - screenInfo.screens[j]->x; in PanoramiXPolyText16()
2180 stuff->y = orig_y - screenInfo.screens[j]->y; in PanoramiXPolyText16()
2182 result = (*SavedProcVector[X_PolyText16]) (client); in PanoramiXPolyText16()
2190 PanoramiXImageText8(ClientPtr client) in PanoramiXImageText8() argument
2199 REQUEST_FIXED_SIZE(xImageTextReq, stuff->nChars); in PanoramiXImageText8()
2201 result = dixLookupResourceByClass((void **) &draw, stuff->drawable, in PanoramiXImageText8()
2202 XRC_DRAWABLE, client, DixWriteAccess); in PanoramiXImageText8()
2207 return (*SavedProcVector[X_ImageText8]) (client); in PanoramiXImageText8()
2209 result = dixLookupResourceByType((void **) &gc, stuff->gc, XRT_GC, in PanoramiXImageText8()
2210 client, DixReadAccess); in PanoramiXImageText8()
2216 orig_x = stuff->x; in PanoramiXImageText8()
2217 orig_y = stuff->y; in PanoramiXImageText8()
2219 stuff->drawable = draw->info[j].id; in PanoramiXImageText8()
2220 stuff->gc = gc->info[j].id; in PanoramiXImageText8()
2222 stuff->x = orig_x - screenInfo.screens[j]->x; in PanoramiXImageText8()
2223 stuff->y = orig_y - screenInfo.screens[j]->y; in PanoramiXImageText8()
2225 result = (*SavedProcVector[X_ImageText8]) (client); in PanoramiXImageText8()
2233 PanoramiXImageText16(ClientPtr client) in PanoramiXImageText16() argument
2242 REQUEST_FIXED_SIZE(xImageTextReq, stuff->nChars << 1); in PanoramiXImageText16()
2244 result = dixLookupResourceByClass((void **) &draw, stuff->drawable, in PanoramiXImageText16()
2245 XRC_DRAWABLE, client, DixWriteAccess); in PanoramiXImageText16()
2250 return (*SavedProcVector[X_ImageText16]) (client); in PanoramiXImageText16()
2252 result = dixLookupResourceByType((void **) &gc, stuff->gc, XRT_GC, in PanoramiXImageText16()
2253 client, DixReadAccess); in PanoramiXImageText16()
2259 orig_x = stuff->x; in PanoramiXImageText16()
2260 orig_y = stuff->y; in PanoramiXImageText16()
2262 stuff->drawable = draw->info[j].id; in PanoramiXImageText16()
2263 stuff->gc = gc->info[j].id; in PanoramiXImageText16()
2265 stuff->x = orig_x - screenInfo.screens[j]->x; in PanoramiXImageText16()
2266 stuff->y = orig_y - screenInfo.screens[j]->y; in PanoramiXImageText16()
2268 result = (*SavedProcVector[X_ImageText16]) (client); in PanoramiXImageText16()
2276 PanoramiXCreateColormap(ClientPtr client) in PanoramiXCreateColormap() argument
2285 result = dixLookupResourceByType((void **) &win, stuff->window, in PanoramiXCreateColormap()
2286 XRT_WINDOW, client, DixReadAccess); in PanoramiXCreateColormap()
2293 newCmap->type = XRT_COLORMAP; in PanoramiXCreateColormap()
2294 panoramix_setup_ids(newCmap, client, stuff->mid); in PanoramiXCreateColormap()
2296 orig_visual = stuff->visual; in PanoramiXCreateColormap()
2298 stuff->mid = newCmap->info[j].id; in PanoramiXCreateColormap()
2299 stuff->window = win->info[j].id; in PanoramiXCreateColormap()
2300 stuff->visual = PanoramiXTranslateVisualID(j, orig_visual); in PanoramiXCreateColormap()
2301 result = (*SavedProcVector[X_CreateColormap]) (client); in PanoramiXCreateColormap()
2307 AddResource(newCmap->info[0].id, XRT_COLORMAP, newCmap); in PanoramiXCreateColormap()
2315 PanoramiXFreeColormap(ClientPtr client) in PanoramiXFreeColormap() argument
2324 client->errorValue = stuff->id; in PanoramiXFreeColormap()
2326 result = dixLookupResourceByType((void **) &cmap, stuff->id, XRT_COLORMAP, in PanoramiXFreeColormap()
2327 client, DixDestroyAccess); in PanoramiXFreeColormap()
2332 stuff->id = cmap->info[j].id; in PanoramiXFreeColormap()
2333 result = (*SavedProcVector[X_FreeColormap]) (client); in PanoramiXFreeColormap()
2345 PanoramiXCopyColormapAndFree(ClientPtr client) in PanoramiXCopyColormapAndFree() argument
2354 client->errorValue = stuff->srcCmap; in PanoramiXCopyColormapAndFree()
2356 result = dixLookupResourceByType((void **) &cmap, stuff->srcCmap, in PanoramiXCopyColormapAndFree()
2357 XRT_COLORMAP, client, in PanoramiXCopyColormapAndFree()
2365 newCmap->type = XRT_COLORMAP; in PanoramiXCopyColormapAndFree()
2366 panoramix_setup_ids(newCmap, client, stuff->mid); in PanoramiXCopyColormapAndFree()
2369 stuff->srcCmap = cmap->info[j].id; in PanoramiXCopyColormapAndFree()
2370 stuff->mid = newCmap->info[j].id; in PanoramiXCopyColormapAndFree()
2371 result = (*SavedProcVector[X_CopyColormapAndFree]) (client); in PanoramiXCopyColormapAndFree()
2377 AddResource(newCmap->info[0].id, XRT_COLORMAP, newCmap); in PanoramiXCopyColormapAndFree()
2385 PanoramiXInstallColormap(ClientPtr client) in PanoramiXInstallColormap() argument
2393 client->errorValue = stuff->id; in PanoramiXInstallColormap()
2395 result = dixLookupResourceByType((void **) &cmap, stuff->id, XRT_COLORMAP, in PanoramiXInstallColormap()
2396 client, DixReadAccess); in PanoramiXInstallColormap()
2401 stuff->id = cmap->info[j].id; in PanoramiXInstallColormap()
2402 result = (*SavedProcVector[X_InstallColormap]) (client); in PanoramiXInstallColormap()
2410 PanoramiXUninstallColormap(ClientPtr client) in PanoramiXUninstallColormap() argument
2418 client->errorValue = stuff->id; in PanoramiXUninstallColormap()
2420 result = dixLookupResourceByType((void **) &cmap, stuff->id, XRT_COLORMAP, in PanoramiXUninstallColormap()
2421 client, DixReadAccess); in PanoramiXUninstallColormap()
2426 stuff->id = cmap->info[j].id; in PanoramiXUninstallColormap()
2427 result = (*SavedProcVector[X_UninstallColormap]) (client); in PanoramiXUninstallColormap()
2435 PanoramiXAllocColor(ClientPtr client) in PanoramiXAllocColor() argument
2444 client->errorValue = stuff->cmap; in PanoramiXAllocColor()
2446 result = dixLookupResourceByType((void **) &cmap, stuff->cmap, in PanoramiXAllocColor()
2447 XRT_COLORMAP, client, DixWriteAccess); in PanoramiXAllocColor()
2452 stuff->cmap = cmap->info[j].id; in PanoramiXAllocColor()
2453 result = (*SavedProcVector[X_AllocColor]) (client); in PanoramiXAllocColor()
2461 PanoramiXAllocNamedColor(ClientPtr client) in PanoramiXAllocNamedColor() argument
2468 REQUEST_FIXED_SIZE(xAllocNamedColorReq, stuff->nbytes); in PanoramiXAllocNamedColor()
2470 client->errorValue = stuff->cmap; in PanoramiXAllocNamedColor()
2472 result = dixLookupResourceByType((void **) &cmap, stuff->cmap, in PanoramiXAllocNamedColor()
2473 XRT_COLORMAP, client, DixWriteAccess); in PanoramiXAllocNamedColor()
2478 stuff->cmap = cmap->info[j].id; in PanoramiXAllocNamedColor()
2479 result = (*SavedProcVector[X_AllocNamedColor]) (client); in PanoramiXAllocNamedColor()
2487 PanoramiXAllocColorCells(ClientPtr client) in PanoramiXAllocColorCells() argument
2496 client->errorValue = stuff->cmap; in PanoramiXAllocColorCells()
2498 result = dixLookupResourceByType((void **) &cmap, stuff->cmap, in PanoramiXAllocColorCells()
2499 XRT_COLORMAP, client, DixWriteAccess); in PanoramiXAllocColorCells()
2504 stuff->cmap = cmap->info[j].id; in PanoramiXAllocColorCells()
2505 result = (*SavedProcVector[X_AllocColorCells]) (client); in PanoramiXAllocColorCells()
2513 PanoramiXAllocColorPlanes(ClientPtr client) in PanoramiXAllocColorPlanes() argument
2522 client->errorValue = stuff->cmap; in PanoramiXAllocColorPlanes()
2524 result = dixLookupResourceByType((void **) &cmap, stuff->cmap, in PanoramiXAllocColorPlanes()
2525 XRT_COLORMAP, client, DixWriteAccess); in PanoramiXAllocColorPlanes()
2530 stuff->cmap = cmap->info[j].id; in PanoramiXAllocColorPlanes()
2531 result = (*SavedProcVector[X_AllocColorPlanes]) (client); in PanoramiXAllocColorPlanes()
2539 PanoramiXFreeColors(ClientPtr client) in PanoramiXFreeColors() argument
2548 client->errorValue = stuff->cmap; in PanoramiXFreeColors()
2550 result = dixLookupResourceByType((void **) &cmap, stuff->cmap, in PanoramiXFreeColors()
2551 XRT_COLORMAP, client, DixWriteAccess); in PanoramiXFreeColors()
2556 stuff->cmap = cmap->info[j].id; in PanoramiXFreeColors()
2557 result = (*SavedProcVector[X_FreeColors]) (client); in PanoramiXFreeColors()
2563 PanoramiXStoreColors(ClientPtr client) in PanoramiXStoreColors() argument
2572 client->errorValue = stuff->cmap; in PanoramiXStoreColors()
2574 result = dixLookupResourceByType((void **) &cmap, stuff->cmap, in PanoramiXStoreColors()
2575 XRT_COLORMAP, client, DixWriteAccess); in PanoramiXStoreColors()
2580 stuff->cmap = cmap->info[j].id; in PanoramiXStoreColors()
2581 result = (*SavedProcVector[X_StoreColors]) (client); in PanoramiXStoreColors()
2589 PanoramiXStoreNamedColor(ClientPtr client) in PanoramiXStoreNamedColor() argument
2596 REQUEST_FIXED_SIZE(xStoreNamedColorReq, stuff->nbytes); in PanoramiXStoreNamedColor()
2598 client->errorValue = stuff->cmap; in PanoramiXStoreNamedColor()
2600 result = dixLookupResourceByType((void **) &cmap, stuff->cmap, in PanoramiXStoreNamedColor()
2601 XRT_COLORMAP, client, DixWriteAccess); in PanoramiXStoreNamedColor()
2606 stuff->cmap = cmap->info[j].id; in PanoramiXStoreNamedColor()
2607 result = (*SavedProcVector[X_StoreNamedColor]) (client); in PanoramiXStoreNamedColor()