From 6008906f0e328180b17e7b604b97dfdfd4280508 Mon Sep 17 00:00:00 2001 From: Julien Cristau Date: Sun, 27 Feb 2011 15:46:13 +0100 Subject: Fix build with xserver 1.10 ScrnInfo->pixmapPrivate is gone Signed-off-by: Julien Cristau --- src/smi_crtc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/smi_crtc.c') diff --git a/src/smi_crtc.c b/src/smi_crtc.c index bccf9b2..2bcdc0a 100644 --- a/src/smi_crtc.c +++ b/src/smi_crtc.c @@ -210,10 +210,12 @@ SMI_CrtcConfigResize(ScrnInfoPtr pScrn, pScrn->pScreen->ModifyPixmapHeader(pScrn->pScreen->GetScreenPixmap(pScrn->pScreen), -1,-1,-1,-1,-1, pSmi->FBBase + pSmi->FBOffset); +#if (XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(1, 9, 99, 1, 0)) if(pScrn->pixmapPrivate.ptr) /* The pixmap devPrivate just set may be overwritten by xf86EnableDisableFBAccess */ pScrn->pixmapPrivate.ptr = pSmi->FBBase + pSmi->FBOffset; +#endif /* Modify the screen pitch */ pScrn->displayWidth = aligned_pitch / pSmi->Bpp; -- cgit v1.2.3