Changes in uspace/srv/hid/compositor/compositor.c [737ebf3:2bb6d04] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/compositor/compositor.c
r737ebf3 r2bb6d04 67 67 #include <transform.h> 68 68 #include <rectangle.h> 69 #include < surface.h>70 #include < cursor.h>71 #include < source.h>72 #include <draw ctx.h>73 #include < codec/tga.h>69 #include <draw/surface.h> 70 #include <draw/cursor.h> 71 #include <draw/source.h> 72 #include <draw/drawctx.h> 73 #include <draw/codec.h> 74 74 75 75 #include "compositor.h" … … 634 634 static void comp_window_damage(window_t *win, ipc_call_t *icall) 635 635 { 636 double x = IPC_GET_ARG1(*icall);637 double y = IPC_GET_ARG2(*icall);638 double width = IPC_GET_ARG3(*icall);639 double height = IPC_GET_ARG4(*icall);636 double x = ipc_get_arg1(icall); 637 double y = ipc_get_arg2(icall); 638 double width = ipc_get_arg3(icall); 639 double height = ipc_get_arg4(icall); 640 640 641 641 if ((width == 0) || (height == 0)) { … … 655 655 static void comp_window_grab(window_t *win, ipc_call_t *icall) 656 656 { 657 sysarg_t pos_id = IPC_GET_ARG1(*icall);658 sysarg_t grab_flags = IPC_GET_ARG2(*icall);657 sysarg_t pos_id = ipc_get_arg1(icall); 658 sysarg_t grab_flags = ipc_get_arg2(icall); 659 659 660 660 /* … … 732 732 733 733 /* Create new surface for the resized window. */ 734 surface_t *new_surface = surface_create( IPC_GET_ARG3(*icall),735 IPC_GET_ARG4(*icall), new_cell_storage, SURFACE_FLAG_SHARED);734 surface_t *new_surface = surface_create(ipc_get_arg3(icall), 735 ipc_get_arg4(icall), new_cell_storage, SURFACE_FLAG_SHARED); 736 736 if (!new_surface) { 737 737 as_area_destroy(new_cell_storage); … … 740 740 } 741 741 742 sysarg_t offset_x = IPC_GET_ARG1(*icall);743 sysarg_t offset_y = IPC_GET_ARG2(*icall);742 sysarg_t offset_x = ipc_get_arg1(icall); 743 sysarg_t offset_y = ipc_get_arg2(icall); 744 744 window_placement_flags_t placement_flags = 745 (window_placement_flags_t) IPC_GET_ARG5(*icall);745 (window_placement_flags_t) ipc_get_arg5(icall); 746 746 747 747 comp_update_viewport_bound_rect(); … … 921 921 { 922 922 ipc_call_t call; 923 service_id_t service_id = (service_id_t) IPC_GET_ARG2(*icall);923 service_id_t service_id = (service_id_t) ipc_get_arg2(icall); 924 924 925 925 /* Allocate resources for new window and register it to the location service. */ … … 928 928 929 929 async_get_call(&call); 930 if ( IPC_GET_IMETHOD(call) == WINDOW_REGISTER) {930 if (ipc_get_imethod(&call) == WINDOW_REGISTER) { 931 931 fibril_mutex_lock(&window_list_mtx); 932 932 … … 938 938 } 939 939 940 win->flags = IPC_GET_ARG1(call);940 win->flags = ipc_get_arg1(&call); 941 941 942 942 char name_in[LOC_NAME_MAXLEN + 1]; … … 1014 1014 async_get_call(&call); 1015 1015 1016 if (! IPC_GET_IMETHOD(call)) {1016 if (!ipc_get_imethod(&call)) { 1017 1017 async_answer_0(&call, EOK); 1018 1018 window_destroy(win); … … 1020 1020 } 1021 1021 1022 switch ( IPC_GET_IMETHOD(call)) {1022 switch (ipc_get_imethod(&call)) { 1023 1023 case WINDOW_GET_EVENT: 1024 1024 comp_window_get_event(win, &call); … … 1032 1032 async_get_call(&call); 1033 1033 1034 if (! IPC_GET_IMETHOD(call)) {1034 if (!ipc_get_imethod(&call)) { 1035 1035 comp_window_close(win, &call); 1036 1036 window_destroy(win); … … 1038 1038 } 1039 1039 1040 switch ( IPC_GET_IMETHOD(call)) {1040 switch (ipc_get_imethod(&call)) { 1041 1041 case WINDOW_DAMAGE: 1042 1042 comp_window_damage(win, &call); … … 1067 1067 static void comp_mode_change(viewport_t *vp, ipc_call_t *icall) 1068 1068 { 1069 sysarg_t mode_idx = IPC_GET_ARG2(*icall);1069 sysarg_t mode_idx = ipc_get_arg2(icall); 1070 1070 fibril_mutex_lock(&viewport_list_mtx); 1071 1071 … … 1165 1165 fibril_mutex_lock(&viewport_list_mtx); 1166 1166 list_foreach(viewport_list, link, viewport_t, cur) { 1167 if (cur->dsid == (service_id_t) IPC_GET_ARG1(*icall)) {1167 if (cur->dsid == (service_id_t) ipc_get_arg1(icall)) { 1168 1168 vp = cur; 1169 1169 break; … … 1180 1180 async_get_call(&call); 1181 1181 1182 if (! IPC_GET_IMETHOD(call)) {1182 if (!ipc_get_imethod(&call)) { 1183 1183 async_hangup(vp->sess); 1184 1184 return; 1185 1185 } 1186 1186 1187 switch ( IPC_GET_IMETHOD(call)) {1187 switch (ipc_get_imethod(&call)) { 1188 1188 case VISUALIZER_MODE_CHANGE: 1189 1189 comp_mode_change(vp, &call);
Note:
See TracChangeset
for help on using the changeset viewer.