Home
last modified time | relevance | path

Searched refs:new_cols (Results 1 – 1 of 1) sorted by relevance

/haiku/src/apps/serialconnect/libvterm/src/
H A Dscreen.c80 …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()
86 for(col = 0; col < new_cols; col++) { in realloc_buffer()
87 ScreenCell *new_cell = new_buffer + row*new_cols + col; in realloc_buffer()
482 static int resize(int new_rows, int new_cols, VTermPos *delta, void *user) in resize() argument
516 screen->buffers[0] = realloc_buffer(screen, screen->buffers[0], new_rows, new_cols); in resize()
518 screen->buffers[1] = realloc_buffer(screen, screen->buffers[1], new_rows, new_cols); in resize()
523 screen->cols = new_cols; in resize()
528 screen->sb_buffer = vterm_allocator_malloc(screen->vt, sizeof(VTermScreenCell) * new_cols); in resize()
530 if(new_cols > old_cols) { in resize()
[all …]