Changeset bd29f9c9 in mainline for uspace/lib/clui/tinput.c
- Timestamp:
- 2012-07-30T20:01:02Z (11 years ago)
- Branches:
- lfn, master, serial
- Children:
- 542e819, beb9336
- Parents:
- c15849c (diff), 597b12e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/clui/tinput.c
rc15849c rbd29f9c9 601 601 602 602 unsigned int cols = max(1, (ti->con_cols + 1) / (max_length + 1)); 603 unsigned int col_width = ti->con_cols / cols; 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; 604 608 unsigned int rows = cnum / cols + ((cnum % cols) != 0); 605 609
Note: See TracChangeset
for help on using the changeset viewer.