From 4de8913e6f0e3f6160544b02c0893b1f707efdf9 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 22 May 2024 21:19:29 +0200 Subject: drop obsolete check for REGION_NULL Since we're relying on at least xserver 1.18, we know that symbol exists. Signed-off-by: Enrico Weigelt, metux IT consult Part-of: --- src/smi_video.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/smi_video.c b/src/smi_video.c index d3b7a42..b0319ac 100644 --- a/src/smi_video.c +++ b/src/smi_video.c @@ -930,13 +930,9 @@ SMI_SetupVideo(ScreenPtr pScreen) } } else smiPortPtr->I2CDev.SlaveAddr = 0; - -#if defined(REGION_NULL) + REGION_NULL(pScreen, &smiPortPtr->clip); -#else - REGION_INIT(pScreen, &smiPortPtr->clip, NullBox, 0); -#endif - + pSmi->ptrAdaptor = ptrAdaptor; pSmi->BlockHandler = pScreen->BlockHandler; pScreen->BlockHandler = SMI_BlockHandler; -- cgit v1.2.3