Changeset ea28272 in mainline for uspace/lib/clui/tinput.c
- Timestamp:
- 2010-12-30T13:43:27Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d770deb
- Parents:
- d70d80ed (diff), f418e51 (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
rd70d80ed rea28272 140 140 static void tinput_update_origin(tinput_t *ti) 141 141 { 142 ipcarg_t width = ti->col0 + ti->nc;143 ipcarg_t rows = (width / ti->con_cols) + 1;142 sysarg_t width = ti->col0 + ti->nc; 143 sysarg_t rows = (width / ti->con_cols) + 1; 144 144 145 145 /* Update row0 if the screen scrolled. */ … … 153 153 return; 154 154 155 ipcarg_t new_width = ti->col0 + ti->nc + 1;155 sysarg_t new_width = ti->col0 + ti->nc + 1; 156 156 if (new_width % ti->con_cols == 0) { 157 157 /* Advancing to new line. */ 158 ipcarg_t new_height = (new_width / ti->con_cols) + 1;158 sysarg_t new_height = (new_width / ti->con_cols) + 1; 159 159 if (new_height >= ti->con_rows) { 160 160 /* Disallow text longer than 1 page for now. */ … … 184 184 return; 185 185 186 ipcarg_t new_width = ti->col0 + ti->nc + ilen;187 ipcarg_t new_height = (new_width / ti->con_cols) + 1;186 sysarg_t new_width = ti->col0 + ti->nc + ilen; 187 sysarg_t new_height = (new_width / ti->con_cols) + 1; 188 188 if (new_height >= ti->con_rows) { 189 189 /* Disallow text longer than 1 page for now. */
Note:
See TracChangeset
for help on using the changeset viewer.