* slight code style fix, but that file would need a complete cleanup to be
style compliant... git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22369 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1104,34 +1104,28 @@ BRegion::Support::miRegionOp(
|
|||||||
*-----------------------------------------------------------------------
|
*-----------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
BRegion::Support::miUnionNonO (
|
BRegion::Support::miUnionNonO(register BRegion* pReg,
|
||||||
register BRegion* pReg,
|
register clipping_rect* r, clipping_rect* rEnd,
|
||||||
register clipping_rect* r,
|
register int top, register int bottom)
|
||||||
clipping_rect* rEnd,
|
|
||||||
register int top,
|
|
||||||
register int bottom)
|
|
||||||
{
|
{
|
||||||
register clipping_rect* pNextRect;
|
register clipping_rect* pNextRect = &pReg->fData[pReg->fCount];
|
||||||
|
|
||||||
pNextRect = &pReg->fData[pReg->fCount];
|
assert(top < bottom);
|
||||||
|
|
||||||
assert(top < bottom);
|
while (r != rEnd) {
|
||||||
|
assert(r->left < r->right);
|
||||||
|
MEMCHECK(pReg, pNextRect, pReg->fData);
|
||||||
|
pNextRect->left = r->left;
|
||||||
|
pNextRect->top = top;
|
||||||
|
pNextRect->right = r->right;
|
||||||
|
pNextRect->bottom = bottom;
|
||||||
|
pReg->fCount += 1;
|
||||||
|
pNextRect++;
|
||||||
|
|
||||||
while (r != rEnd)
|
assert(pReg->fCount<=pReg->fDataSize);
|
||||||
{
|
r++;
|
||||||
assert(r->left < r->right);
|
}
|
||||||
MEMCHECK(pReg, pNextRect, pReg->fData);
|
return 0;
|
||||||
pNextRect->left = r->left;
|
|
||||||
pNextRect->top = top;
|
|
||||||
pNextRect->right = r->right;
|
|
||||||
pNextRect->bottom = bottom;
|
|
||||||
pReg->fCount += 1;
|
|
||||||
pNextRect++;
|
|
||||||
|
|
||||||
assert(pReg->fCount<=pReg->fDataSize);
|
|
||||||
r++;
|
|
||||||
}
|
|
||||||
return 0; /* lint */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user