Lines Matching refs:pDrawable
86 DRIFreePixmapImp(DrawablePtr pDrawable);
89 DrawablePtr pDrawable; member
362 DrawablePtr pDrawable, xp_client_id client_id, in DRICreateSurface() argument
370 if (pDrawable->type == DRAWABLE_WINDOW) { in DRICreateSurface()
374 RootlessStopDrawing((WindowPtr)pDrawable, FALSE); in DRICreateSurface()
377 (WindowPtr)pDrawable, &wid); in DRICreateSurface()
381 } else if (pDrawable->type == DRAWABLE_PIXMAP) { in DRICreateSurface()
383 (PixmapPtr)pDrawable); in DRICreateSurface()
413 if (pDrawable->type == DRAWABLE_WINDOW) { in DRICreateSurface()
414 WindowPtr pWin = (WindowPtr)pDrawable; in DRICreateSurface()
418 else if (pDrawable->type == DRAWABLE_PIXMAP) { in DRICreateSurface()
419 PixmapPtr pPix = (PixmapPtr)pDrawable; in DRICreateSurface()
441 AddResource(id, DRIDrawablePrivResType, (void *)pDrawable); in DRICreateSurface()
444 DRIUpdateSurface(pDRIDrawablePriv, pDrawable); in DRICreateSurface()
465 DRIDestroySurface(ScreenPtr pScreen, Drawable id, DrawablePtr pDrawable, in DRIDestroySurface() argument
470 if (pDrawable->type == DRAWABLE_WINDOW) { in DRIDestroySurface()
471 pDRIDrawablePriv = DRI_DRAWABLE_PRIV_FROM_WINDOW((WindowPtr)pDrawable); in DRIDestroySurface()
473 else if (pDrawable->type == DRAWABLE_PIXMAP) { in DRIDestroySurface()
474 pDRIDrawablePriv = DRI_DRAWABLE_PRIV_FROM_PIXMAP((PixmapPtr)pDrawable); in DRIDestroySurface()
517 DrawablePtr pDrawable = (DrawablePtr)pResource; in DRIDrawablePrivDelete() local
518 DRIScreenPrivPtr pDRIPriv = DRI_SCREEN_PRIV(pDrawable->pScreen); in DRIDrawablePrivDelete()
523 if (pDrawable->type == DRAWABLE_WINDOW) { in DRIDrawablePrivDelete()
524 pWin = (WindowPtr)pDrawable; in DRIDrawablePrivDelete()
527 else if (pDrawable->type == DRAWABLE_PIXMAP) { in DRIDrawablePrivDelete()
528 pPix = (PixmapPtr)pDrawable; in DRIDrawablePrivDelete()
538 return DRIFreePixmapImp(pDrawable); in DRIDrawablePrivDelete()
556 if (pDrawable->type == DRAWABLE_WINDOW) { in DRIDrawablePrivDelete()
559 else if (pDrawable->type == DRAWABLE_PIXMAP) { in DRIDrawablePrivDelete()
682 DrawablePtr pDrawable, char *path, in DRICreatePixmap() argument
688 if (pDrawable->type != DRAWABLE_PIXMAP) in DRICreatePixmap()
691 pPix = (PixmapPtr)pDrawable; in DRICreatePixmap()
698 shared->pDrawable = pDrawable; in DRICreatePixmap()
701 if (pDrawable->bitsPerPixel >= 24) { in DRICreatePixmap()
704 else if (pDrawable->bitsPerPixel <= 16) { in DRICreatePixmap()
708 shared->width = pDrawable->width; in DRICreatePixmap()
709 shared->height = pDrawable->height; in DRICreatePixmap()
752 AddResource(id, DRIDrawablePrivResType, (void *)pDrawable); in DRICreatePixmap()
758 DRIGetPixmapData(DrawablePtr pDrawable, int *width, int *height, in DRIGetPixmapData() argument
764 if (pDrawable->type != DRAWABLE_PIXMAP) in DRIGetPixmapData()
767 pPix = (PixmapPtr)pDrawable; in DRIGetPixmapData()
774 assert(pDrawable->width == shared->width); in DRIGetPixmapData()
775 assert(pDrawable->height == shared->height); in DRIGetPixmapData()
787 DRIFreePixmapImp(DrawablePtr pDrawable) in DRIFreePixmapImp() argument
792 if (pDrawable->type != DRAWABLE_PIXMAP) in DRIFreePixmapImp()
795 pPix = (PixmapPtr)pDrawable; in DRIFreePixmapImp()
813 DRIDestroyPixmap(DrawablePtr pDrawable) in DRIDestroyPixmap() argument
815 if (DRIFreePixmapImp(pDrawable)) in DRIDestroyPixmap()
816 FreeResourceByType(pDrawable->id, DRIDrawablePrivResType, FALSE); in DRIDestroyPixmap()