Changeset e80d8f8 in mainline
- Timestamp:
- 2012-11-30T05:15:11Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3e6a98c5
- Parents:
- 69c1995
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/compositor/compositor.c
r69c1995 re80d8f8 266 266 } 267 267 268 static void comp_coord_from_client( sysarg_t x_in, sysarg_ty_in, transform_t win_trans,268 static void comp_coord_from_client(double x_in, double y_in, transform_t win_trans, 269 269 sysarg_t *x_out, sysarg_t *y_out) 270 270 { … … 279 279 } 280 280 281 static void comp_coord_bounding_rect( sysarg_t x_in, sysarg_ty_in,282 sysarg_t w_in, sysarg_th_in, transform_t win_trans,281 static void comp_coord_bounding_rect(double x_in, double y_in, 282 double w_in, double h_in, transform_t win_trans, 283 283 sysarg_t *x_out, sysarg_t *y_out, sysarg_t *w_out, sysarg_t *h_out) 284 284 { … … 303 303 (*h_out) = (*h_out) - (*y_out) + 1; 304 304 } else { 305 (*x_out) = 0; 306 (*y_out) = 0; 305 307 (*w_out) = 0; 306 308 (*h_out) = 0; … … 547 549 static void comp_window_damage(window_t *win, ipc_callid_t iid, ipc_call_t *icall) 548 550 { 549 sysarg_tx = IPC_GET_ARG1(*icall);550 sysarg_ty = IPC_GET_ARG2(*icall);551 sysarg_twidth = IPC_GET_ARG3(*icall);552 sysarg_theight = IPC_GET_ARG4(*icall);551 double x = IPC_GET_ARG1(*icall); 552 double y = IPC_GET_ARG2(*icall); 553 double width = IPC_GET_ARG3(*icall); 554 double height = IPC_GET_ARG4(*icall); 553 555 554 556 if (width == 0 || height == 0) { … … 556 558 } else { 557 559 fibril_mutex_lock(&window_list_mtx); 560 sysarg_t x_dmg_glob, y_dmg_glob, w_dmg_glob, h_dmg_glob; 558 561 comp_coord_bounding_rect(x - 1, y - 1, width + 2, height + 2, 559 win->transform, &x , &y, &width, &height);562 win->transform, &x_dmg_glob, &y_dmg_glob, &w_dmg_glob, &h_dmg_glob); 560 563 fibril_mutex_unlock(&window_list_mtx); 561 comp_damage(x , y, width, height);564 comp_damage(x_dmg_glob, y_dmg_glob, w_dmg_glob, h_dmg_glob); 562 565 } 563 566
Note:
See TracChangeset
for help on using the changeset viewer.