Lines Matching refs:rows

59     // calculate how many rows/columns we have
60 vc->rows = DEFAULT_HEIGHT / vc->charh;
68 calloc(1, vc->rows * vc->columns * sizeof(vc_char_t)));
102 assert(y0 <= static_cast<int>(vc->rows));
103 assert(y1 <= static_cast<int>(vc->rows));
180 // Add a row without dropping any existing rows.
244 int rows = vc_rows(vc);
245 vc_invalidate(vc, 0, 0, vc->columns, rows);
246 vc_invalidate_lines(vc, 0, rows);
322 size_t count = vc->rows * vc->columns;
374 vc->columns, scrollback_lines + vc->rows);
398 int rows = vc_rows(vc);
402 if (diff_abs >= rows) {
405 vc_invalidate(vc, 0, vpy, vc->columns, rows);
409 vc_gfx->width, (rows - diff_abs) * vc->charh, 0, 0);
410 vc_invalidate(vc, 0, vpy + rows - diff_abs, vc->columns,
414 (rows - diff_abs) * vc->charh, 0,
466 unsigned rows = vc_gfx->height / vc->charh;
468 if (rows == vc->rows && columns == vc->columns) {
474 calloc(1, rows * columns * sizeof(vc_char_t)));
479 size_t count = rows * columns;
486 // (vc->cursor_y + 1) rows available, and we want (rows - (vc->rows - vc_rows(vc))
487 // rows. Subtract to get the first row index to copy.
489 static_cast<int>((vc->cursor_y + 1) - (rows - (vc->rows - vc_rows(vc)))), 0);
493 while (new_i < rows && old_i <= vc->cursor_y) {
508 vc->rows = rows;
513 // pushing, so we don't merge data from old rows.
534 vc->rows = MIN(vc->rows, rows);
537 printf("vc: buffer resize failed, reusing old buffers (%dx%d)\n", vc->rows, vc->columns);
602 int rows = vc_rows(vc);
605 int invalidate_y0 = MIN(vc->invy0 - vc->viewport_y, rows);
606 int invalidate_y1 = MIN(vc->invy1 - vc->viewport_y, rows);