Lines Matching refs:pDraw
524 DrawablePtr pDraw; in ProcShmPutImage() local
531 VALIDATE_DRAWABLE_AND_GC(stuff->drawable, pDraw, DixWriteAccess); in ProcShmPutImage()
541 if (pDraw->depth != stuff->depth) in ProcShmPutImage()
547 if (pDraw->depth != stuff->depth) in ProcShmPutImage()
591 (*pGC->ops->PutImage) (pDraw, pGC, stuff->depth, in ProcShmPutImage()
598 doShmPutImage(pDraw, pGC, stuff->depth, stuff->format, in ProcShmPutImage()
622 DrawablePtr pDraw; in ProcShmGetImage() local
638 rc = dixLookupDrawable(&pDraw, stuff->drawable, client, 0, DixReadAccess); in ProcShmGetImage()
642 if (pDraw->type == DRAWABLE_WINDOW) { in ProcShmGetImage()
644 !((WindowPtr) pDraw)->realized || in ProcShmGetImage()
646 pDraw->x + stuff->x < 0 || in ProcShmGetImage()
647 pDraw->x + stuff->x + (int) stuff->width > pDraw->pScreen->width in ProcShmGetImage()
648 || pDraw->y + stuff->y < 0 || in ProcShmGetImage()
649 pDraw->y + stuff->y + (int) stuff->height > in ProcShmGetImage()
650 pDraw->pScreen->height || in ProcShmGetImage()
652 stuff->x < -wBorderWidth((WindowPtr) pDraw) || in ProcShmGetImage()
654 wBorderWidth((WindowPtr) pDraw) + (int) pDraw->width || in ProcShmGetImage()
655 stuff->y < -wBorderWidth((WindowPtr) pDraw) || in ProcShmGetImage()
657 wBorderWidth((WindowPtr) pDraw) + (int) pDraw->height) in ProcShmGetImage()
659 visual = wVisual(((WindowPtr) pDraw)); in ProcShmGetImage()
660 if (pDraw->type == DRAWABLE_WINDOW) in ProcShmGetImage()
661 pVisibleRegion = &((WindowPtr) pDraw)->borderClip; in ProcShmGetImage()
662 pDraw->pScreen->SourceValidate(pDraw, stuff->x, stuff->y, in ProcShmGetImage()
668 stuff->x + (int) stuff->width > pDraw->width || in ProcShmGetImage()
669 stuff->y < 0 || stuff->y + (int) stuff->height > pDraw->height) in ProcShmGetImage()
678 .depth = pDraw->depth in ProcShmGetImage()
681 length = PixmapBytePad(stuff->width, pDraw->depth) * stuff->height; in ProcShmGetImage()
685 plane = ((Mask) 1) << (pDraw->depth - 1); in ProcShmGetImage()
697 (*pDraw->pScreen->GetImage) (pDraw, stuff->x, stuff->y, in ProcShmGetImage()
703 PixmapBytePad(stuff->width, pDraw->depth), pDraw, in ProcShmGetImage()
712 (*pDraw->pScreen->GetImage) (pDraw, in ProcShmGetImage()
719 BitmapBytePad(stuff->width), pDraw, in ProcShmGetImage()
786 DrawablePtr pDraw; in ProcPanoramiXShmGetImage() local
811 rc = dixLookupDrawable(&pDraw, stuff->drawable, client, 0, DixReadAccess); in ProcPanoramiXShmGetImage()
834 screenInfo.screens[0]->x + pDraw->x + x < 0 || in ProcPanoramiXShmGetImage()
835 screenInfo.screens[0]->x + pDraw->x + x + w > PanoramiXPixWidth in ProcPanoramiXShmGetImage()
836 || screenInfo.screens[0]->y + pDraw->y + y < 0 || in ProcPanoramiXShmGetImage()
837 screenInfo.screens[0]->y + pDraw->y + y + h > PanoramiXPixHeight in ProcPanoramiXShmGetImage()
840 x < -wBorderWidth((WindowPtr) pDraw) || in ProcPanoramiXShmGetImage()
841 x + w > wBorderWidth((WindowPtr) pDraw) + (int) pDraw->width || in ProcPanoramiXShmGetImage()
842 y < -wBorderWidth((WindowPtr) pDraw) || in ProcPanoramiXShmGetImage()
843 y + h > wBorderWidth((WindowPtr) pDraw) + (int) pDraw->height) in ProcPanoramiXShmGetImage()
848 widthBytesLine = PixmapBytePad(w, pDraw->depth); in ProcPanoramiXShmGetImage()
854 plane = ((Mask) 1) << (pDraw->depth - 1); in ProcPanoramiXShmGetImage()
864 drawables[0] = pDraw; in ProcPanoramiXShmGetImage()
884 .visual = wVisual(((WindowPtr) pDraw)), in ProcPanoramiXShmGetImage()
885 .depth = pDraw->depth in ProcPanoramiXShmGetImage()
927 DrawablePtr pDraw; in ProcPanoramiXShmCreatePixmap() local
942 rc = dixLookupDrawable(&pDraw, stuff->drawable, client, M_ANY, in ProcPanoramiXShmCreatePixmap()
960 pDepth = pDraw->pScreen->allowedDepths; in ProcPanoramiXShmCreatePixmap()
961 for (i = 0; i < pDraw->pScreen->numDepths; i++, pDepth++) in ProcPanoramiXShmCreatePixmap()
1006 pDraw->pScreen->DestroyPixmap(pMap); in ProcPanoramiXShmCreatePixmap()
1060 DrawablePtr pDraw; in ProcShmCreatePixmap() local
1075 rc = dixLookupDrawable(&pDraw, stuff->drawable, client, M_ANY, in ProcShmCreatePixmap()
1093 pDepth = pDraw->pScreen->allowedDepths; in ProcShmCreatePixmap()
1094 for (i = 0; i < pDraw->pScreen->numDepths; i++, pDepth++) in ProcShmCreatePixmap()
1112 screen_priv = ShmGetScreenPriv(pDraw->pScreen); in ProcShmCreatePixmap()
1113 pMap = (*screen_priv->shmFuncs->CreatePixmap) (pDraw->pScreen, stuff->width, in ProcShmCreatePixmap()
1121 pDraw->pScreen->DestroyPixmap(pMap); in ProcShmCreatePixmap()