Changeset 7bb45e3 in mainline
- Timestamp:
- 2020-02-28T16:29:20Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 338d0935
- Parents:
- a8eed5f
- Location:
- uspace/lib/display
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/display/src/disp_srv.c
ra8eed5f r7bb45e3 113 113 sysarg_t wnd_id; 114 114 ipc_call_t call; 115 display_wnd_ move_t wmove;115 display_wnd_resize_t wresize; 116 116 size_t size; 117 117 errno_t rc; … … 125 125 } 126 126 127 if (size != sizeof(display_wnd_ move_t)) {127 if (size != sizeof(display_wnd_resize_t)) { 128 128 async_answer_0(&call, EINVAL); 129 129 async_answer_0(icall, EINVAL); … … 131 131 } 132 132 133 rc = async_data_write_finalize(&call, &w move, size);133 rc = async_data_write_finalize(&call, &wresize, size); 134 134 if (rc != EOK) { 135 135 async_answer_0(&call, rc); … … 143 143 } 144 144 145 rc = srv->ops->window_resize(srv->arg, wnd_id, &w move.offs,146 &w move.nrect);145 rc = srv->ops->window_resize(srv->arg, wnd_id, &wresize.offs, 146 &wresize.nrect); 147 147 async_answer_0(icall, rc); 148 148 } -
uspace/lib/display/src/display.c
ra8eed5f r7bb45e3 292 292 aid_t req; 293 293 ipc_call_t answer; 294 display_wnd_ move_t wmove;295 errno_t rc; 296 297 w move.offs = *offs;298 w move.nrect = *nrect;294 display_wnd_resize_t wresize; 295 errno_t rc; 296 297 wresize.offs = *offs; 298 wresize.nrect = *nrect; 299 299 300 300 exch = async_exchange_begin(window->display->sess); 301 301 req = async_send_1(exch, DISPLAY_WINDOW_RESIZE, window->id, &answer); 302 rc = async_data_write_start(exch, &w move, sizeof (display_wnd_move_t));302 rc = async_data_write_start(exch, &wresize, sizeof (display_wnd_resize_t)); 303 303 async_exchange_end(exch); 304 304 if (rc != EOK) {
Note:
See TracChangeset
for help on using the changeset viewer.