Changeset 597b12e in mainline
- Timestamp:
- 2012-07-30T18:20:54Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1772e6d, bd29f9c9
- Parents:
- 6e3b052d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified uspace/lib/clui/tinput.c ¶
r6e3b052d r597b12e 601 601 602 602 unsigned int cols = max(1, (ti->con_cols + 1) / (max_length + 1)); 603 unsigned int padding = ti->con_cols - (cols * max_length) - (cols - 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 } 604 607 unsigned int col_width = max_length + padding / cols; 605 608 unsigned int rows = cnum / cols + ((cnum % cols) != 0);
Note:
See TracChangeset
for help on using the changeset viewer.