Lines Matching refs:top
150 (pReg)->rdh.rcBound.left = (pReg)->rdh.rcBound.top = 0; \
161 ( ((r).top <= y)) )
169 (r1)->bottom > (r2)->top && \
170 (r1)->top < (r2)->bottom)
478 _In_ LONG top, in REGION_vAddRect() argument
487 prcl->top = top; in REGION_vAddRect()
498 _In_ LONG top, in REGION_bAddRect() argument
507 REGION_vAddRect(prgn, left, top, right, bottom); in REGION_bAddRect()
546 Data->rdh.rcBound.top, in IntDumpRegion()
607 dst->rdh.rcBound.top = src->rdh.rcBound.top; in REGION_CopyRegion()
629 pReg->rdh.rcBound.top = 0; in REGION_SetExtents()
646 pExtents->top = pRect->top; in REGION_SetExtents()
677 INT top = MAXLONG; in REGION_CropRegion() local
681 (rect->top >= rect->bottom) || in REGION_CropRegion()
691 if (rgnSrc->Buffer[clipa].bottom > rect->top) break; in REGION_CropRegion()
701 if (rgnSrc->Buffer[clipb].top >= rect->bottom) break; in REGION_CropRegion()
738 ASSERT(lpr->bottom > lpr->top); in REGION_CropRegion()
742 ASSERT(lpr->bottom > rect->top); in REGION_CropRegion()
743 ASSERT(lpr->top < rect->bottom); in REGION_CropRegion()
751 rpr->top = max(lpr->top, rect->top); in REGION_CropRegion()
757 ASSERT(rpr->bottom > rpr->top); in REGION_CropRegion()
763 if (rpr->top < top) top = rpr->top; in REGION_CropRegion()
776 rgnDst->rdh.rcBound.top = top; in REGION_CropRegion()
831 bandtop = pCurRect->top; in REGION_Coalesce()
833 (pCurRect != pRegEnd) && (pCurRect->top == bandtop); in REGION_Coalesce()
846 while ((pRegEnd-1)->top == pRegEnd->top) in REGION_Coalesce()
861 if (pPrevRect->bottom == pCurRect->top) in REGION_Coalesce()
969 ULONG top; /* Top of non-overlapping band */ in REGION_RegionOp() local
1015 if (reg1->rdh.rcBound.top < reg2->rdh.rcBound.top) in REGION_RegionOp()
1016 ybot = reg1->rdh.rcBound.top; in REGION_RegionOp()
1018 ybot = reg2->rdh.rcBound.top; in REGION_RegionOp()
1038 while ((r1BandEnd != r1End) && (r1BandEnd->top == r1->top)) in REGION_RegionOp()
1044 while ((r2BandEnd != r2End) && (r2BandEnd->top == r2->top)) in REGION_RegionOp()
1055 if (r1->top < r2->top) in REGION_RegionOp()
1057 top = max(r1->top,ybot); in REGION_RegionOp()
1058 bot = min(r1->bottom,r2->top); in REGION_RegionOp()
1060 if ((top != bot) && (nonOverlap1Func != NULL)) in REGION_RegionOp()
1062 if (!(*nonOverlap1Func)(newReg, r1, r1BandEnd, top, bot)) return FALSE; in REGION_RegionOp()
1065 ytop = r2->top; in REGION_RegionOp()
1067 else if (r2->top < r1->top) in REGION_RegionOp()
1069 top = max(r2->top,ybot); in REGION_RegionOp()
1070 bot = min(r2->bottom,r1->top); in REGION_RegionOp()
1072 if ((top != bot) && (nonOverlap2Func != NULL)) in REGION_RegionOp()
1074 if (!(*nonOverlap2Func)(newReg, r2, r2BandEnd, top, bot) ) return FALSE; in REGION_RegionOp()
1077 ytop = r1->top; in REGION_RegionOp()
1081 ytop = r1->top; in REGION_RegionOp()
1129 while ((r1BandEnd < r1End) && (r1BandEnd->top == r1->top)) in REGION_RegionOp()
1137 max(r1->top,ybot), in REGION_RegionOp()
1150 while ((r2BandEnd < r2End) && (r2BandEnd->top == r2->top)) in REGION_RegionOp()
1158 max(r2->top,ybot), in REGION_RegionOp()
1245 INT top, in REGION_IntersectO() argument
1262 if (!REGION_bAddRect(pReg, left, top, right, bottom)) in REGION_IntersectO()
1351 INT top, in REGION_UnionNonO() argument
1363 REGION_vAddRect(pReg, r->left, top, r->right, bottom); in REGION_UnionNonO()
1377 _In_ LONG top, in REGION_bMergeRect() argument
1382 (prgn->Buffer[prgn->rdh.nCount - 1].top == top) && in REGION_bMergeRect()
1393 if (!REGION_bAddRect(prgn, left, top, right, bottom)) in REGION_bMergeRect()
1423 INT top, in REGION_UnionO() argument
1430 if (!REGION_bMergeRect(pReg, r1->left, top, r1->right, bottom)) return FALSE; in REGION_UnionO()
1435 if (!REGION_bMergeRect(pReg, r2->left, top, r2->right, bottom)) return FALSE; in REGION_UnionO()
1444 if (!REGION_bMergeRect(pReg, r1->left, top, r1->right, bottom)) return FALSE; in REGION_UnionO()
1453 if (!REGION_bMergeRect(pReg, r2->left, top, r2->right, bottom)) return FALSE; in REGION_UnionO()
1478 (reg1->rdh.rcBound.bottom <= reg1->rdh.rcBound.top)) in REGION_UnionRegion()
1491 (reg2->rdh.rcBound.bottom <= reg2->rdh.rcBound.top)) in REGION_UnionRegion()
1504 (reg1->rdh.rcBound.top <= reg2->rdh.rcBound.top) && in REGION_UnionRegion()
1519 (reg2->rdh.rcBound.top <= reg1->rdh.rcBound.top) && in REGION_UnionRegion()
1539 newReg->rdh.rcBound.top = min(reg1->rdh.rcBound.top, reg2->rdh.rcBound.top); in REGION_UnionRegion()
1568 INT top, in REGION_SubtractNonO1() argument
1580 REGION_vAddRect(pReg, r->left, top, r->right, bottom); in REGION_SubtractNonO1()
1609 INT top, in REGION_SubtractO() argument
1646 if (!REGION_bAddRect(pReg, left, top, r2->left, bottom)) in REGION_SubtractO()
1670 if (!REGION_bAddRect(pReg, left, top, r1->right, bottom)) in REGION_SubtractO()
1693 REGION_vAddRect(pReg, left, top, r1->right, bottom); in REGION_SubtractO()
1862 NT_ASSERT((prclSrc->bottom > prclSrc->top) && in REGION_bMakeSimpleFrameRgn()
1869 if (((prclSrc->bottom - prclSrc->top) <= cy * 2) || in REGION_bMakeSimpleFrameRgn()
1884 arcl[i].top = prclSrc->top; in REGION_bMakeSimpleFrameRgn()
1886 arcl[i].bottom = prclSrc->top + cy; in REGION_bMakeSimpleFrameRgn()
1894 arcl[i].top = prclSrc->top + cy; in REGION_bMakeSimpleFrameRgn()
1901 arcl[i].top = prclSrc->top + cy; in REGION_bMakeSimpleFrameRgn()
1911 arcl[i].top = prclSrc->bottom - cy; in REGION_bMakeSimpleFrameRgn()
1980 (prgnSrc->rdh.rcBound.top < (MIN_COORD + cy)) || in REGION_bMakeFrameRegion()
2139 NT_ASSERT(prgn->Buffer[i].top <= prgn->Buffer[i].bottom); in REGION_bXformRgn()
2140 NT_ASSERT(prgn->Buffer[i + 1].top >= prgn->Buffer[i].top); in REGION_bXformRgn()
2163 ppt[4 * i + 0].y = prgn->Buffer[i].top; in REGION_bXformRgn()
2165 ppt[4 * i + 1].y = prgn->Buffer[i].top; in REGION_bXformRgn()
2343 prgnattr->Rect.top, in REGION_vSyncRegion()
2391 prgnattr->Rect.top = prgn->rdh.rcBound.top; in REGION_UnlockRgn()
2617 if (rect->top > rect->bottom) in REGION_RectInRegion()
2619 rc.top = rect->bottom; in REGION_RectInRegion()
2620 rc.bottom = rect->top; in REGION_RectInRegion()
2624 rc.top = rect->top; in REGION_RectInRegion()
2645 if (pCurRect->bottom <= rc.top) in REGION_RectInRegion()
2648 if (pCurRect->top >= rc.bottom) in REGION_RectInRegion()
2696 firstRect->top = rgn->rdh.rcBound.top = TopRect; in REGION_SetRectRgn()
2769 if (prgn->rdh.rcBound.top < (MIN_COORD - cy)) in REGION_bOffsetRgn()
2781 prcl[i].top += cy; in REGION_bOffsetRgn()
2790 prgn->rdh.rcBound.top += cy; in REGION_bOffsetRgn()
3103 ((numRects == 1) || (rects[-1].top != rects->top)) && in REGION_PtsToRegion()
3113 rects->top = pts->y; in REGION_PtsToRegion()
3128 extents->top = reg->Buffer->top; in REGION_PtsToRegion()
3134 extents->top = 0; in REGION_PtsToRegion()
3180 const POINT *top, *bottom; in REGION_CreateETandAET() local
3218 bottom = PrevPt, top = CurrPt; in REGION_CreateETandAET()
3223 bottom = CurrPt, top = PrevPt; in REGION_CreateETandAET()
3228 if (bottom->y != top->y) in REGION_CreateETandAET()
3234 dy = bottom->y - top->y; in REGION_CreateETandAET()
3235 BRESINITPGONSTRUCT(dy, top->x, bottom->x, pETEs->bres); in REGION_CreateETandAET()
3239 top->y, in REGION_CreateETandAET()
3619 INT top, in NtGdiCreateRoundRectRgn() argument
3639 if (top > bottom) in NtGdiCreateRoundRectRgn()
3641 INT tmp = top; in NtGdiCreateRoundRectRgn()
3642 top = bottom; in NtGdiCreateRoundRectRgn()
3651 ellipse_height = min( bottom - top, abs( ellipse_height )); in NtGdiCreateRoundRectRgn()
3656 return NtGdiCreateRectRgn(left, top, right, bottom); in NtGdiCreateRoundRectRgn()
3665 obj->rdh.rcBound.top = top; in NtGdiCreateRoundRectRgn()
3706 rects[i].top = top + i; in NtGdiCreateRoundRectRgn()
3707 rects[i].bottom = rects[i].top + 1; in NtGdiCreateRoundRectRgn()
3711 rects[i].top = bottom - ellipse_height + i; in NtGdiCreateRoundRectRgn()
3712 rects[i].bottom = rects[i].top + 1; in NtGdiCreateRoundRectRgn()
3714 rects[ellipse_height / 2].top = top + ellipse_height / 2; /* extend to top of rectangle */ in NtGdiCreateRoundRectRgn()
3778 (rgn1->rdh.rcBound.top != rgn2->rdh.rcBound.top) || in NtGdiEqualRgn()
3792 (tRect1[i].top != tRect2[i].top) || in NtGdiEqualRgn()
3866 if ( rects[i].left < rects[i].right && rects[i].top < rects[i].bottom ) in NtGdiExtCreateRegion()