Lines Matching defs:ny
4430 struct screen_write_ctx *ctx, u_int py, u_int ny)
4434 for (yy = py; yy < py + ny; yy++)
4467 window_copy_redraw_lines(struct window_mode_entry *wme, u_int py, u_int ny)
4475 for (i = py; i < py + ny; i++)
5611 window_copy_scroll_up(struct window_mode_entry *wme, u_int ny)
5618 if (data->oy < ny)
5619 ny = data->oy;
5620 if (ny == 0)
5622 data->oy -= ny;
5630 screen_write_deleteline(&ctx, ny, 8);
5631 window_copy_write_lines(wme, &ctx, screen_size_y(s) - ny, ny);
5637 if (s->sel != NULL && screen_size_y(s) > ny)
5638 window_copy_write_line(wme, &ctx, screen_size_y(s) - ny - 1);
5645 window_copy_scroll_down(struct window_mode_entry *wme, u_int ny)
5652 if (ny > screen_hsize(data->backing))
5655 if (data->oy > screen_hsize(data->backing) - ny)
5656 ny = screen_hsize(data->backing) - data->oy;
5657 if (ny == 0)
5659 data->oy += ny;
5667 screen_write_insertline(&ctx, ny, 8);
5668 window_copy_write_lines(wme, &ctx, 0, ny);
5669 if (s->sel != NULL && screen_size_y(s) > ny)
5670 window_copy_write_line(wme, &ctx, ny);
5671 else if (ny == 1) /* nuke position */
5866 u_int cy, yy, ny, nd;
5870 ny = yy - py;
5874 ny = 0;
5878 while (ny > 0) {
5880 ny--;
5892 u_int cy, yy, ny, nd;
5897 ny = cy - yy;
5901 ny = 0;
5904 while (ny > 0) {
5906 ny--;