if ((width > MAXSHORT) || (height > MAXSHORT)) return NullPixmap;
ilbmCreatePixmap(pScreen, width, height, depth)	ScreenPtr		pScreen;	int				width;	int				height;	int				depth;{	PixmapPtr pPixmap;	int datasize;	int paddedWidth;	paddedWidth = BitmapBytePad(width);	datasize = height * paddedWidth * depth;	pPixmap = AllocatePixmap(pScreen, datasize);	if (!pPixmap)		return(NullPixmap);	pPixmap->drawable.type = DRAWABLE_PIXMAP;	pPixmap->drawable.class = 0;	pPixmap->drawable.pScreen = pScreen;	pPixmap->drawable.depth = depth;	pPixmap->drawable.bitsPerPixel = depth;	pPixmap->drawable.id = 0;	pPixmap->drawable.serialNumber = NEXT_SERIAL_NUMBER;	pPixmap->drawable.x = 0;	pPixmap->drawable.y = 0;	pPixmap->drawable.width = width;	pPixmap->drawable.height = height;	pPixmap->devKind = paddedWidth;	pPixmap->refcnt = 1;#ifdef PIXPRIV	pPixmap->devPrivate.ptr =  datasize ?				(pointer)((char *)pPixmap + pScreen->totalPixmapSize) : NULL;#else	pPixmap->devPrivate.ptr = (pointer)(pPixmap + 1);#endif	return(pPixmap);}