Lines Matching refs:new_cols
80 …tic ScreenCell *realloc_buffer(VTermScreen *screen, ScreenCell *buffer, int new_rows, int new_cols) in realloc_buffer() argument
82 …eenCell *new_buffer = vterm_allocator_malloc(screen->vt, sizeof(ScreenCell) * new_rows * new_cols); in realloc_buffer()
85 for(int col = 0; col < new_cols; col++) { in realloc_buffer()
86 ScreenCell *new_cell = new_buffer + row*new_cols + col; in realloc_buffer()
480 static int resize(int new_rows, int new_cols, VTermPos *delta, void *user) in resize() argument
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()
519 screen->cols = new_cols; in resize()
524 screen->sb_buffer = vterm_allocator_malloc(screen->vt, sizeof(VTermScreenCell) * new_cols); in resize()
526 if(new_cols > old_cols) { in resize()
531 .end_col = new_cols, in resize()
569 .end_col = new_cols, in resize()
575 return (*screen->callbacks->resize)(new_rows, new_cols, screen->cbdata); in resize()