Lines Matching defs:columns
590 u_int i, j, columns, rows;
599 /* How many rows and columns are wanted? */
600 rows = columns = 1;
601 while (rows * columns < n) {
603 if (rows * columns < n)
604 columns++;
608 width = (w->sx - (columns - 1)) / columns;
618 sx = ((width + 1) * columns) - 1;
640 if (n - (j * columns) == 1 || columns == 1) {
646 /* Add in the columns. */
648 for (i = 0; i < columns; i++) {
661 * Adjust the row and columns to fit the full width if
664 if (i == columns)