Lines Matching refs:new_rows
80 static ScreenCell *realloc_buffer(VTermScreen *screen, ScreenCell *buffer, int new_rows, int new_co… in realloc_buffer() argument
82 …ScreenCell *new_buffer = vterm_allocator_malloc(screen->vt, sizeof(ScreenCell) * new_rows * new_co… in realloc_buffer()
84 for(int row = 0; row < new_rows; row++) { in realloc_buffer()
480 static int resize(int new_rows, int new_cols, VTermPos *delta, void *user) in resize() argument
489 if(!is_altscreen && new_rows < old_rows) { in resize()
493 for(pos.row = old_rows - 1; pos.row >= new_rows; pos.row--) in resize()
498 if(first_blank_row > new_rows) { in resize()
505 scrollrect(rect, first_blank_row - new_rows, 0, user); in resize()
508 delta->row -= first_blank_row - new_rows; in resize()
512 screen->buffers[0] = realloc_buffer(screen, screen->buffers[0], new_rows, new_cols); in resize()
514 screen->buffers[1] = realloc_buffer(screen, screen->buffers[1], new_rows, new_cols); in resize()
518 screen->rows = new_rows; in resize()
536 if(new_rows > old_rows) { in resize()
538 int rows = new_rows - old_rows; in resize()
567 .end_row = new_rows, in resize()
575 return (*screen->callbacks->resize)(new_rows, new_cols, screen->cbdata); in resize()