diff options
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 |