diff --git a/mfb/mfbbitblt.c b/mfb/mfbbitblt.c index 0c23ba750..344c655ee 100644 --- a/mfb/mfbbitblt.c +++ b/mfb/mfbbitblt.c @@ -399,22 +399,20 @@ int dstx, dsty; static DevPrivateKey copyPlaneScreenKey = ©PlaneScreenKey; -typedef RegionPtr (*CopyPlaneFuncPtr)( - DrawablePtr /* pSrcDrawable */, - DrawablePtr /* pDstDrawable */, - GCPtr /* pGC */, - int /* srcx */, - int /* srcy */, - int /* width */, - int /* height */, - int /* dstx */, - int /* dsty */, - unsigned long /* bitPlane */); - Bool mfbRegisterCopyPlaneProc (pScreen, proc) ScreenPtr pScreen; - CopyPlaneFuncPtr proc; + RegionPtr (*proc)( + DrawablePtr /* pSrcDrawable */, + DrawablePtr /* pDstDrawable */, + GCPtr /* pGC */, + int /* srcx */, + int /* srcy */, + int /* width */, + int /* height */, + int /* dstx */, + int /* dsty */, + unsigned long /* bitPlane */); { dixSetPrivate(&pScreen->devPrivates, copyPlaneScreenKey, proc); return TRUE; @@ -461,10 +459,8 @@ unsigned long plane; if (pSrcDrawable->depth != 1) { - if ((copyPlane = (CopyPlaneFuncPtr) - dixLookupPrivate(&pSrcDrawable->pScreen->devPrivates, - copyPlaneScreenKey)) - ) + if ((copyPlane = dixLookupPrivate(&pSrcDrawable->pScreen->devPrivates, + copyPlaneScreenKey))) { return (*copyPlane) (pSrcDrawable, pDstDrawable, pGC, srcx, srcy, width, height, dstx, dsty, plane);