Changes in uspace/lib/clui/tinput.c [597b12e:9d58539] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/clui/tinput.c
r597b12e r9d58539 601 601 602 602 unsigned int cols = max(1, (ti->con_cols + 1) / (max_length + 1)); 603 unsigned int padding = 0; 604 if ((cols * max_length) + (cols - 1) < ti->con_cols) { 605 padding = ti->con_cols - (cols * max_length) - (cols - 1); 606 } 607 unsigned int col_width = max_length + padding / cols; 603 unsigned int col_width = ti->con_cols / cols; 608 604 unsigned int rows = cnum / cols + ((cnum % cols) != 0); 609 605
Note:
See TracChangeset
for help on using the changeset viewer.