mirror of
https://github.com/X11Libre/xf86-video-sis.git
synced 2026-03-24 01:25:01 +00:00
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:
committed by
Marge Bot
parent
99912aad26
commit
2ecda6541e
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user