(file) Return to ppcPixmap.c CVS log (file) (dir) Up to [XFree86 CVS] / xc / programs / Xserver / hw / xfree86 / xf4bpp

Diff for /xc/programs/Xserver/hw/xfree86/xf4bpp/ppcPixmap.c between version 1.6 and 1.7

version 1.6, 2005/03/28 02:51:07 version 1.7, 2005/09/14 15:13:51
Line 1 
Line 1 
 /* $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
  *  *
Line 84 
Line 84 
  
     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));


Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

Powered by
ViewCVS 0.9.2