Lines Matching refs:pRect2

221 static DECLCALLBACK(int) vboxVrRegNonintersectedComparator(PCRTRECT pRect1, PCRTRECT pRect2)
223 Assert(!VBoxRectIsIntersect(pRect1, pRect2));
224 if (pRect1->yTop != pRect2->yTop)
225 return pRect1->yTop - pRect2->yTop;
226 return pRect1->xLeft - pRect2->xLeft;
311 static int vboxVrListRegIntersectSubstNoJoin(PVBOXVR_LIST pList1, PVBOXVR_REG pReg1, PCRTRECT pRect2)
321 Assert(!VBoxRectIsZero(pRect2));
325 Assert(VBoxRectIsIntersect(&pReg1->Rect, pRect2));
327 if (pReg1->Rect.yTop < pRect2->yTop)
329 Assert(pRect2->yTop < pReg1->Rect.yBottom);
333 pRegResult->Rect.yBottom = pRect2->yTop;
335 topLim = pRect2->yTop;
339 if (pReg1->Rect.yBottom > pRect2->yBottom)
341 Assert(pRect2->yBottom > pReg1->Rect.yTop);
343 pRegResult->Rect.yTop = pRect2->yBottom;
347 bottomLim = pRect2->yBottom;
351 if (pReg1->Rect.xLeft < pRect2->xLeft)
353 Assert(pRect2->xLeft < pReg1->Rect.xRight);
358 pRegResult->Rect.xRight = pRect2->xLeft;
362 if (pReg1->Rect.xRight > pRect2->xRight)
364 Assert(pRect2->xRight > pReg1->Rect.xLeft);
367 pRegResult->Rect.xLeft = pRect2->xRight;
381 return VINF_SUCCESS; /* the region is covered by the pRect2 */
401 PCRTRECT pRect2, void *pvContext, PRTLISTNODE *ppNext);
417 PCRTRECT pRect2 = &aRects[i];
418 if (VBoxRectIsZero(pRect2))
421 if (!VBoxRectIsIntersect(&pReg1->Rect, pRect2))
425 pEntry1 = pfnVisitor (pList1, pReg1, pRect2, pvVisitor, &pNext1);
453 PCRTRECT pRect2 = &aRects[i];
454 if (VBoxRectIsZero(pRect2))
457 if (VBoxRectIsIntersect(&pReg1->Rect, pRect2))
624 static DECLCALLBACK(PRTLISTNODE) vboxVrListSubstNoJoinCb(PVBOXVR_LIST pList, PVBOXVR_REG pReg1, PCRTRECT pRect2,
632 Assert(VBoxRectIsIntersect(&pReg1->Rect, pRect2));
635 int rc = vboxVrListRegIntersectSubstNoJoin(pList, pReg1, pRect2);
693 PRTRECT pRect2 = &pRects[i+1];
694 if (vboxVrRegNonintersectedComparator(pRect1, pRect2) < 0)
717 *pRect1 = *pRect2;
718 *pRect2 = Tmp;
726 pRect2 = pRect1--;
762 static DECLCALLBACK(PRTLISTNODE) vboxVrListIntersectNoJoinIntersectedCb(PVBOXVR_LIST pList1, PVBOXVR_REG pReg1, PCRTRECT pRect2,
772 Assert(VBoxRectIsIntersect(&pReg1->Rect, pRect2));
773 Assert(!VBoxRectIsZero(pRect2));
776 VBoxRectIntersect(&pReg1->Rect, pRect2);
815 PCRTRECT pRect2 = &pReg2->Rect;
817 if (!VBoxRectIsIntersect(&RegRect1, pRect2))
822 if (VBoxRectCovers(pRect2, &RegRect1))
829 if (!VBoxRectCmp(pRect2, &RegRect1))
835 Assert(VBoxRectCmp(pRect2, &RegRect1));
843 VBoxRectIntersect(&pReg1->Rect, pRect2);
859 VBoxRectIntersected(&RegRect1, pRect2, &pReg->Rect);