mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-14 00:01:20 +00:00
Change REGION_INIT(pScreen, &foo, NullBox, 0) to REGION_NULL(pScreen,
&foo). While it is no longer (or rather, once again not) required as of
regionstr.h r1.4, it matches the style of the rest of the xorg code.
This commit is contained in:
parent
c25536a793
commit
1729fc882c
5 changed files with 15 additions and 5 deletions
|
|
@ -591,7 +591,7 @@ xglxWindowExposures (WindowPtr pWin,
|
|||
|
||||
if (HasBorder (pWin))
|
||||
{
|
||||
REGION_INIT (pScreen, &ClipList, NullBox, 0);
|
||||
REGION_NULL (pScreen, &ClipList);
|
||||
REGION_SUBTRACT (pScreen, &ClipList, &pWin->borderClip,
|
||||
&pWin->winSize);
|
||||
REGION_INTERSECT (pScreen, &ClipList, &ClipList, (RegionPtr) pReg);
|
||||
|
|
@ -599,7 +599,7 @@ xglxWindowExposures (WindowPtr pWin,
|
|||
REGION_UNINIT (pScreen, &ClipList);
|
||||
}
|
||||
|
||||
REGION_INIT (pScreen, &ClipList, NullBox, 0);
|
||||
REGION_NULL (pScreen, &ClipList);
|
||||
REGION_INTERSECT (pScreen, &ClipList, &pWin->clipList, (RegionPtr) pReg);
|
||||
(*pScreen->WindowExposures) (pWin, &ClipList, NullRegion);
|
||||
REGION_UNINIT (pScreen, &ClipList);
|
||||
|
|
|
|||
|
|
@ -4729,7 +4729,7 @@ xglCreateBuffer (__GLXdrawablePrivate *glxPriv)
|
|||
pBufferPriv->private = NULL;
|
||||
pBufferPriv->freeBuffers = NULL;
|
||||
|
||||
REGION_INIT (pScreen, &pBufferPriv->damage, NullBox, 0);
|
||||
REGION_NULL (pScreen, &pBufferPriv->damage);
|
||||
|
||||
if (pScreenPriv->fbo ||
|
||||
((pDrawable->type == DRAWABLE_WINDOW)
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ xglSyncBits (DrawablePtr pDrawable,
|
|||
|
||||
switch (RECT_IN_REGION (pDrawable->pScreen, &bitRegion, &box)) {
|
||||
case rgnIN:
|
||||
REGION_INIT (pDrawable->pScreen, ®ion, NullBox, 0);
|
||||
REGION_NULL (pDrawable->pScreen, ®ion);
|
||||
break;
|
||||
case rgnOUT:
|
||||
REGION_INIT (pDrawable->pScreen, ®ion, &box, 1);
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@ xglCopyWindow (WindowPtr pWin,
|
|||
dy = ptOldOrg.y - pWin->drawable.y;
|
||||
|
||||
REGION_TRANSLATE (pWin->drawable.pScreen, prgnSrc, -dx, -dy);
|
||||
REGION_INIT (pWin->drawable.pScreen, &rgnDst, NullBox, 0);
|
||||
REGION_NULL (pWin->drawable.pScreen, &rgnDst);
|
||||
REGION_INTERSECT (pWin->drawable.pScreen,
|
||||
&rgnDst, &pWin->borderClip, prgnSrc);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue