Changeset 7c3fb9b in mainline for uspace/srv/hid/compositor/compositor.c
- Timestamp:
- 2018-05-17T08:29:01Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6ff23ff
- Parents:
- fac0ac7
- git-author:
- Jiri Svoboda <jiri@…> (2018-05-16 17:28:17)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-05-17 08:29:01)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/compositor/compositor.c
rfac0ac7 r7c3fb9b 77 77 #define NAMESPACE "comp" 78 78 79 /* Until there is blitter support and some further optimizations, window 80 * animations are too slow to be practically usable. */ 79 /* 80 * Until there is blitter support and some further optimizations, window 81 * animations are too slow to be practically usable. 82 */ 81 83 #ifndef ANIMATE_WINDOW_TRANSFORMS 82 84 #define ANIMATE_WINDOW_TRANSFORMS 0 … … 422 424 link != &window_list.head; link = link->prev) { 423 425 424 /* Determine what part of the window intersects with the 425 * updated area of the current viewport. */ 426 /* 427 * Determine what part of the window intersects with the 428 * updated area of the current viewport. 429 */ 426 430 window_t *win = list_get_instance(link, window_t, link); 427 431 if (!win->surface) { … … 438 442 439 443 if (isec_win) { 440 /* Prepare conversion from global coordinates to viewport 441 * coordinates. */ 444 /* 445 * Prepare conversion from global coordinates to viewport 446 * coordinates. 447 */ 442 448 transform = win->transform; 443 449 double_point_t pos; … … 470 476 471 477 if (isec_ghost) { 472 /* FIXME: Ghost is currently drawn based on the bounding 478 /* 479 * FIXME: Ghost is currently drawn based on the bounding 473 480 * rectangle of the window, which is sufficient as long 474 481 * as the windows can be rotated only by 90 degrees. … … 476 483 * rotation, it should be drawn as four lines adjusted 477 484 * by the transformation matrix. That would however 478 * require to equip libdraw with line drawing functionality. */ 485 * require to equip libdraw with line drawing functionality. 486 */ 479 487 480 488 transform_t transform = ptr->ghost.transform; … … 532 540 list_foreach(pointer_list, link, pointer_t, ptr) { 533 541 534 /* Determine what part of the pointer intersects with the 535 * updated area of the current viewport. */ 542 /* 543 * Determine what part of the pointer intersects with the 544 * updated area of the current viewport. 545 */ 536 546 sysarg_t x_dmg_ptr, y_dmg_ptr, w_dmg_ptr, h_dmg_ptr; 537 547 surface_t *sf_ptr = ptr->cursor.states[ptr->state]; … … 543 553 544 554 if (isec_ptr) { 545 /* Pointer is currently painted directly by copying pixels. 555 /* 556 * Pointer is currently painted directly by copying pixels. 546 557 * However, it is possible to draw the pointer similarly 547 558 * as window by using drawctx_transfer. It would allow 548 559 * more sophisticated control over drawing, but would also 549 * cost more regarding the performance. */ 560 * cost more regarding the performance. 561 */ 550 562 551 563 sysarg_t x_vp = x_dmg_ptr - vp->pos.x; … … 857 869 loc_service_unregister(win->out_dsid); 858 870 859 /* In case the client was killed, input fibril of the window might be 860 * still blocked on the condition within comp_window_get_event. */ 871 /* 872 * In case the client was killed, input fibril of the window might be 873 * still blocked on the condition within comp_window_get_event. 874 */ 861 875 window_event_t *event_dummy = (window_event_t *) malloc(sizeof(window_event_t)); 862 876 if (event_dummy) {
Note:
See TracChangeset
for help on using the changeset viewer.