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:
Eric Anholt 2005-12-31 08:06:00 +00:00
parent c25536a793
commit 1729fc882c
5 changed files with 15 additions and 5 deletions

View File

@ -1,3 +1,13 @@
2005-12-31 Eric Anholt <anholt@FreeBSD.org>
* hw/xgl/glx/xglx.c: (xglxWindowExposures):
* hw/xgl/glxext/xglglxext.c: (xglCreateBuffer):
* hw/xgl/xglsync.c: (xglSyncBits):
* hw/xgl/xglwindow.c: (xglCopyWindow):
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.
2005-12-30 Eric Anholt <anholt@FreeBSD.org>
* hw/xgl/xglsync.c: (xglSyncBits), (xglSyncSurface):

View File

@ -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);

View File

@ -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)

View File

@ -96,7 +96,7 @@ xglSyncBits (DrawablePtr pDrawable,
switch (RECT_IN_REGION (pDrawable->pScreen, &bitRegion, &box)) {
case rgnIN:
REGION_INIT (pDrawable->pScreen, &region, NullBox, 0);
REGION_NULL (pDrawable->pScreen, &region);
break;
case rgnOUT:
REGION_INIT (pDrawable->pScreen, &region, &box, 1);

View File

@ -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);