Lines Matching refs:pPixmap
41 PixmapPtr pPixmap; in xnestCreatePixmap() local
43 pPixmap = AllocatePixmap(pScreen, 0); in xnestCreatePixmap()
44 if (!pPixmap) in xnestCreatePixmap()
46 pPixmap->drawable.type = DRAWABLE_PIXMAP; in xnestCreatePixmap()
47 pPixmap->drawable.class = 0; in xnestCreatePixmap()
48 pPixmap->drawable.depth = depth; in xnestCreatePixmap()
49 pPixmap->drawable.bitsPerPixel = depth; in xnestCreatePixmap()
50 pPixmap->drawable.id = 0; in xnestCreatePixmap()
51 pPixmap->drawable.x = 0; in xnestCreatePixmap()
52 pPixmap->drawable.y = 0; in xnestCreatePixmap()
53 pPixmap->drawable.width = width; in xnestCreatePixmap()
54 pPixmap->drawable.height = height; in xnestCreatePixmap()
55 pPixmap->drawable.pScreen = pScreen; in xnestCreatePixmap()
56 pPixmap->drawable.serialNumber = NEXT_SERIAL_NUMBER; in xnestCreatePixmap()
57 pPixmap->refcnt = 1; in xnestCreatePixmap()
58 pPixmap->devKind = PixmapBytePad(width, depth); in xnestCreatePixmap()
59 pPixmap->usage_hint = usage_hint; in xnestCreatePixmap()
61 xnestPixmapPriv(pPixmap)->pixmap = in xnestCreatePixmap()
66 xnestPixmapPriv(pPixmap)->pixmap = 0; in xnestCreatePixmap()
68 return pPixmap; in xnestCreatePixmap()
72 xnestDestroyPixmap(PixmapPtr pPixmap) in xnestDestroyPixmap() argument
74 if (--pPixmap->refcnt) in xnestDestroyPixmap()
76 XFreePixmap(xnestDisplay, xnestPixmap(pPixmap)); in xnestDestroyPixmap()
77 FreePixmap(pPixmap); in xnestDestroyPixmap()
82 xnestModifyPixmapHeader(PixmapPtr pPixmap, int width, int height, int depth, in xnestModifyPixmapHeader() argument
85 if(!xnestPixmapPriv(pPixmap)->pixmap && width > 0 && height > 0) { in xnestModifyPixmapHeader()
86 xnestPixmapPriv(pPixmap)->pixmap = in xnestModifyPixmapHeader()
88 xnestDefaultWindows[pPixmap->drawable.pScreen->myNum], in xnestModifyPixmapHeader()
92 return miModifyPixmapHeader(pPixmap, width, height, depth, in xnestModifyPixmapHeader()
97 xnestPixmapToRegion(PixmapPtr pPixmap) in xnestPixmapToRegion() argument
106 ximage = XGetImage(xnestDisplay, xnestPixmap(pPixmap), 0, 0, in xnestPixmapToRegion()
107 pPixmap->drawable.width, pPixmap->drawable.height, in xnestPixmapToRegion()
117 for (y = 0; y < pPixmap->drawable.height; y++) { in xnestPixmapToRegion()
121 for (x = 0; x < pPixmap->drawable.width; x++) { in xnestPixmapToRegion()
139 Box.x2 = pPixmap->drawable.width; in xnestPixmapToRegion()