drop ifdef on REGION_NULL

It's always defined since our minimal version (1.18), so no need for
extra ifdef's.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/driver/xf86-video-sis/-/merge_requests/12>
This commit is contained in:
Enrico Weigelt, metux IT consult
2024-05-22 16:22:13 +02:00
committed by Marge Bot
parent 99912aad26
commit 2ecda6541e
2 changed files with 0 additions and 12 deletions

View File

@@ -574,11 +574,7 @@ SIS6326SetupImageVideo(ScreenPtr pScreen)
SIS6326SetPortDefaults(pScrn, pPriv);
/* gotta uninit this someplace */
#if defined(REGION_NULL)
REGION_NULL(pScreen, &pPriv->clip);
#else
REGION_INIT(pScreen, &pPriv->clip, NullBox, 0);
#endif
pSiS->adaptor = adapt;

View File

@@ -939,11 +939,7 @@ SISSetupImageVideo(ScreenPtr pScreen)
adapt->QueryImageAttributes = SISQueryImageAttributes;
/* gotta uninit this someplace */
#if defined(REGION_NULL)
REGION_NULL(pScreen, &pPriv->clip);
#else
REGION_INIT(pScreen, &pPriv->clip, NullBox, 0);
#endif
pSiS->adaptor = adapt;
@@ -4012,11 +4008,7 @@ SISSetupBlitVideo(ScreenPtr pScreen)
for(i = 0; i < NUM_BLIT_PORTS; i++) {
adapt->pPortPrivates[i].uval = (ULong)(i);
#if defined(REGION_NULL)
REGION_NULL(pScreen, &pPriv->blitClip[i]);
#else
REGION_INIT(pScreen, &pPriv->blitClip[i], NullBox, 0);
#endif
pPriv->videoStatus[i] = 0;
pPriv->currentBuf[i] = 0;
pPriv->handle[i] = NULL;