Lines Matching refs:top
627 if (r->top < boundary->top) in rect_map_inside()
628 r->top = boundary->top; in rect_map_inside()
631 if (r->top + r->height > boundary->height) in rect_map_inside()
632 r->top = boundary->height - r->height; in rect_map_inside()
647 r.top = max(a->top, b->top); in rect_intersect()
649 bottom = min(a->top + a->height, b->top + b->height); in rect_intersect()
651 r.height = max(0, bottom - r.top); in rect_intersect()
664 r->left = r->top = r->width = r->height = 0; in rect_scale()
669 r->top = ((r->top - from->top) * to->height) / from->height; in rect_scale()
688 if (r1->top >= r2->top + r2->height || in rect_overlap()
689 r2->top >= r1->top + r1->height) in rect_overlap()
721 if (r->top < 0) in vivid_vid_adjust_sel()
722 r->top = 0; in vivid_vid_adjust_sel()
727 r->top &= 0xfffe; in vivid_vid_adjust_sel()
730 if (r->top + h > MAX_HEIGHT) in vivid_vid_adjust_sel()
731 r->top = MAX_HEIGHT - h; in vivid_vid_adjust_sel()