if ((width > MAXSHORT) || (height > MAXSHORT)) return NullPixmap;
fbCreatePixmapBpp (ScreenPtr pScreen, int width, int height, int depth, int bpp){    PixmapPtr	pPixmap;    int		datasize;    int		paddedWidth;    int		adjust;    int		base;    paddedWidth = ((width * bpp + FB_MASK) >> FB_SHIFT) * sizeof (FbBits);    datasize = height * paddedWidth;#ifdef PIXPRIV    base = pScreen->totalPixmapSize;#else    base = sizeof (PixmapRec);#endif    adjust = 0;    if (base & 7)	adjust = 8 - (base & 7);    datasize += adjust;#ifdef FB_DEBUG    datasize += 2 * paddedWidth;#endif    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 = bpp;    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;    pPixmap->devPrivate.ptr = (pointer) ((char *)pPixmap + base + adjust);#ifdef FB_DEBUG    pPixmap->devPrivate.ptr = (void *) ((char *) pPixmap->devPrivate.ptr + paddedWidth);    fbInitializeDrawable (&pPixmap->drawable);#endif    return pPixmap;}