Lines Matching refs:r1

98 #define EXTENTCHECK(r1, r2) \
99 ((r1)->right > (r2)->left && \
100 (r1)->left < (r2)->right && \
101 (r1)->bottom > (r2)->top && \
102 (r1)->top < (r2)->bottom)
405 clipping_rect* r1,
418 while ((r1 != r1End) && (r2 != r2End))
420 left = max_c(r1->left,r2->left);
421 right = min_c(r1->right,r2->right);
449 if (r1->right < r2->right)
451 r1++;
453 else if (r2->right < r1->right)
459 r1++;
810 clipping_rect* r1,
834 clipping_rect* r1; /* Pointer into first region */
845 clipping_rect* r1BandEnd; /* End of current band in r1 */
854 * set r1, r2, r1End and r2End appropriately, preserve the important
859 r1 = reg1->fData;
861 r1End = r1 + reg1->fCount;
919 r1BandEnd = r1;
920 while ((r1BandEnd != r1End) && (r1BandEnd->top == r1->top))
939 if (r1->top < r2->top)
941 top = max_c(r1->top,ybot);
942 bot = min_c(r1->bottom,r2->top);
946 (* nonOverlap1Func) (newReg, r1, r1BandEnd, top, bot);
951 else if (r2->top < r1->top)
954 bot = min_c(r2->bottom,r1->top);
961 ytop = r1->top;
965 ytop = r1->top;
983 ybot = min_c(r1->bottom, r2->bottom);
987 (* overlapFunc) (newReg, r1, r1BandEnd, r2, r2BandEnd, ytop, ybot);
1000 if (r1->bottom == ybot)
1002 r1 = r1BandEnd;
1008 } while ((r1 != r1End) && (r2 != r2End));
1014 if (r1 != r1End)
1020 r1BandEnd = r1;
1021 while ((r1BandEnd < r1End) && (r1BandEnd->top == r1->top))
1025 (* nonOverlap1Func) (newReg, r1, r1BandEnd,
1026 max_c(r1->top,ybot), r1->bottom);
1027 r1 = r1BandEnd;
1028 } while (r1 != r1End);
1151 clipping_rect* r1,
1188 while ((r1 != r1End) && (r2 != r2End))
1190 if (r1->left < r2->left)
1192 MERGERECT(r1);
1200 if (r1 != r1End)
1204 MERGERECT(r1);
1205 } while (r1 != r1End);
1349 clipping_rect* r1,
1359 left = r1->left;
1364 while ((r1 != r1End) && (r2 != r2End))
1379 if (left >= r1->right)
1385 r1++;
1386 if (r1 != r1End)
1387 left = r1->left;
1398 else if (r2->left < r1->right)
1416 if (left >= r1->right)
1421 r1++;
1422 if (r1 != r1End)
1423 left = r1->left;
1438 if (r1->right > left)
1443 pNextRect->right = r1->right;
1449 r1++;
1450 if (r1 != r1End)
1451 left = r1->left;
1458 while (r1 != r1End)
1460 assert(left<r1->right);
1464 pNextRect->right = r1->right;
1471 r1++;
1472 if (r1 != r1End)
1474 left = r1->left;