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()
477 static int resize(int new_rows, int new_cols, VTermPos *delta, void *user) in resize() argument
511 screen->buffers[0] = realloc_buffer(screen, screen->buffers[0], new_rows, new_cols); in resize()
513 screen->buffers[1] = realloc_buffer(screen, screen->buffers[1], new_rows, new_cols); in resize()
518 screen->cols = new_cols; in resize()
523 screen->sb_buffer = vterm_allocator_malloc(screen->vt, sizeof(VTermScreenCell) * new_cols); in resize()
525 if(new_cols > old_cols) { in resize()
530 .end_col = new_cols, in resize()
568 .end_col = new_cols, in resize()
574 return (*screen->callbacks->resize)(new_rows, new_cols, screen->cbdata); in resize()