diff options
author | Enrico Weigelt, metux IT consult <info@metux.net> | 2024-05-22 21:19:29 +0200 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-05-22 18:41:10 -0700 |
commit | 4de8913e6f0e3f6160544b02c0893b1f707efdf9 (patch) | |
tree | 685ac4074f5778b2aebb7734a367715711e18290 | |
parent | f494e952945771f2a1595f8ec8093b0182e8af70 (diff) |
Since we're relying on at least xserver 1.18, we know that symbol exists.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-siliconmotion/-/merge_requests/6>
-rw-r--r-- | src/smi_video.c | 8 |
1 files 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; |