From b5e85e495e55e2537d305b7bebacdf6f97b66199 Mon Sep 17 00:00:00 2001 From: "Roy.Li" Date: Thu, 27 Jun 2013 14:10:14 +0800 Subject: [PATCH] uxa: fix the compilation error with xorg-xserver <= 1.10 struct _Screen has no canDoBGNoneRoot when ABI_VIDEODRV_VERSION is less than 10.0 Signed-off-by: Roy.Li --- src/intel_display.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/intel_display.c b/src/intel_display.c index 17168e5b..0acb86d4 100644 --- a/src/intel_display.c +++ b/src/intel_display.c @@ -2113,7 +2113,9 @@ void intel_copy_fb(ScrnInfoPtr scrn) 0, 0, scrn->virtualX, scrn->virtualY); intel->uxa_driver->done_copy(dst); +#if ABI_VIDEODRV_VERSION >= SET_ABI_VERSION(10, 0) pScreen->canDoBGNoneRoot = TRUE; +#endif cleanup_dst: (*pScreen->DestroyPixmap)(dst);