Lines Matching defs:new_cols
80 static ScreenCell *realloc_buffer(VTermScreen *screen, ScreenCell *buffer, int new_rows, int new_cols)
82 ScreenCell *new_buffer = vterm_allocator_malloc(screen->vt, sizeof(ScreenCell) * new_rows * new_cols);
85 for(int col = 0; col < new_cols; col++) {
86 ScreenCell *new_cell = new_buffer + row*new_cols + col;
480 static int resize(int new_rows, int new_cols, VTermPos *delta, void *user)
512 screen->buffers[0] = realloc_buffer(screen, screen->buffers[0], new_rows, new_cols);
514 screen->buffers[1] = realloc_buffer(screen, screen->buffers[1], new_rows, new_cols);
519 screen->cols = new_cols;
524 screen->sb_buffer = vterm_allocator_malloc(screen->vt, sizeof(VTermScreenCell) * new_cols);
526 if(new_cols > old_cols) {
531 .end_col = new_cols,
569 .end_col = new_cols,
575 return (*screen->callbacks->resize)(new_rows, new_cols, screen->cbdata);