|
version 1.6, 2005/03/28 02:51:07
|
version 1.7, 2005/09/14 15:13:51
|
|
|
|
| /* $XFree86: xc/programs/Xserver/hw/xfree86/xf4bpp/ppcPixmap.c,v 1.5 2000/04/27 16:26:49 eich Exp $ */ |
/* $XFree86: xc/programs/Xserver/hw/xfree86/xf4bpp/ppcPixmap.c,v 1.6tsi Exp $ */ |
| /* | /* |
| * Copyright IBM Corporation 1987,1988,1989 | * Copyright IBM Corporation 1987,1988,1989 |
| * | * |
|
|
|
| | |
| TRACE(("xf4bppCreatePixmap(pScreen=0x%x, width=%d, height=%d, depth=%d)\n", pScreen, width, height, depth)) ; | TRACE(("xf4bppCreatePixmap(pScreen=0x%x, width=%d, height=%d, depth=%d)\n", pScreen, width, height, depth)) ; |
| | |
| if ( depth > 8 ) |
if ((depth > 8) || (width > MAXSHORT) || (height > MAXSHORT)) |
| return (PixmapPtr) NULL ; |
return NullPixmap; |
| | |
| size = PixmapBytePad(width, depth); | size = PixmapBytePad(width, depth); |
| pPixmap = AllocatePixmap (pScreen, (height * size)); | pPixmap = AllocatePixmap (pScreen, (height * size)); |