Lines Matching refs:top
652 if (r->top < boundary->top) in rect_map_inside()
653 r->top = boundary->top; in rect_map_inside()
656 if (r->top + r->height > boundary->height) in rect_map_inside()
657 r->top = boundary->height - r->height; in rect_map_inside()
672 r.top = max(a->top, b->top); in rect_intersect()
674 bottom = min(a->top + a->height, b->top + b->height); in rect_intersect()
676 r.height = max(0, bottom - r.top); in rect_intersect()
689 r->left = r->top = r->width = r->height = 0; in rect_scale()
694 r->top = ((r->top - from->top) * to->height) / from->height; in rect_scale()
713 if (r1->top >= r2->top + r2->height || in rect_overlap()
714 r2->top >= r1->top + r1->height) in rect_overlap()
746 if (r->top < 0) in vivid_vid_adjust_sel()
747 r->top = 0; in vivid_vid_adjust_sel()
752 r->top &= 0xfffe; in vivid_vid_adjust_sel()
755 if (r->top + h > MAX_HEIGHT) in vivid_vid_adjust_sel()
756 r->top = MAX_HEIGHT - h; in vivid_vid_adjust_sel()