diff options
author | Kaleb Keithley <kaleb@freedesktop.org> | 2003-12-19 20:55:39 +0000 |
---|---|---|
committer | Kaleb Keithley <kaleb@freedesktop.org> | 2003-12-19 20:55:39 +0000 |
commit | 12e532010b9e8cb67bedd44d489c9c40dd265165 (patch) | |
tree | d680aac8b959e207f02d40069c6e6b5ab930f177 /hw/darwin/iokit/xfIOKit.c | |
parent | 305c444de3baa863d7abc4221e8cebb973805847 (diff) |
XFree86 4.3.99.902 (RC 2)xf86-4_3_99_902
Diffstat (limited to 'hw/darwin/iokit/xfIOKit.c')
-rw-r--r-- | hw/darwin/iokit/xfIOKit.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/hw/darwin/iokit/xfIOKit.c b/hw/darwin/iokit/xfIOKit.c index 6b4bd75c2..a7f5f18ee 100644 --- a/hw/darwin/iokit/xfIOKit.c +++ b/hw/darwin/iokit/xfIOKit.c @@ -33,7 +33,7 @@ * holders shall not be used in advertising or otherwise to promote the sale, * use or other dealings in this Software without prior written authorization. */ -/* $XFree86: xc/programs/Xserver/hw/darwin/iokit/xfIOKit.c,v 1.2 2003/10/16 23:50:09 torrey Exp $ */ +/* $XFree86: xc/programs/Xserver/hw/darwin/iokit/xfIOKit.c,v 1.3 2003/12/09 04:42:36 torrey Exp $ */ #include "X.h" #include "Xproto.h" @@ -516,8 +516,7 @@ static Bool SetupFBandHID( dfb->bitsPerComponent = pixelInfo.bitsPerComponent; // allocate shadow framebuffer - iokitScreen->shadowPtr = shadowAlloc(dfb->width, dfb->height, - dfb->bitsPerPixel); + iokitScreen->shadowPtr = xalloc(dfb->pitch * dfb->height); dfb->framebuffer = iokitScreen->shadowPtr; // Note: Darwin kIORGBDirectPixels = X TrueColor, not DirectColor |