Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/compositor/compositor.c

    r737ebf3 r2bb6d04  
    6767#include <transform.h>
    6868#include <rectangle.h>
    69 #include <surface.h>
    70 #include <cursor.h>
    71 #include <source.h>
    72 #include <drawctx.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>
    7474
    7575#include "compositor.h"
     
    634634static void comp_window_damage(window_t *win, ipc_call_t *icall)
    635635{
    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);
    640640
    641641        if ((width == 0) || (height == 0)) {
     
    655655static void comp_window_grab(window_t *win, ipc_call_t *icall)
    656656{
    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);
    659659
    660660        /*
     
    732732
    733733        /* 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);
    736736        if (!new_surface) {
    737737                as_area_destroy(new_cell_storage);
     
    740740        }
    741741
    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);
    744744        window_placement_flags_t placement_flags =
    745             (window_placement_flags_t) IPC_GET_ARG5(*icall);
     745            (window_placement_flags_t) ipc_get_arg5(icall);
    746746
    747747        comp_update_viewport_bound_rect();
     
    921921{
    922922        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);
    924924
    925925        /* Allocate resources for new window and register it to the location service. */
     
    928928
    929929                async_get_call(&call);
    930                 if (IPC_GET_IMETHOD(call) == WINDOW_REGISTER) {
     930                if (ipc_get_imethod(&call) == WINDOW_REGISTER) {
    931931                        fibril_mutex_lock(&window_list_mtx);
    932932
     
    938938                        }
    939939
    940                         win->flags = IPC_GET_ARG1(call);
     940                        win->flags = ipc_get_arg1(&call);
    941941
    942942                        char name_in[LOC_NAME_MAXLEN + 1];
     
    10141014                        async_get_call(&call);
    10151015
    1016                         if (!IPC_GET_IMETHOD(call)) {
     1016                        if (!ipc_get_imethod(&call)) {
    10171017                                async_answer_0(&call, EOK);
    10181018                                window_destroy(win);
     
    10201020                        }
    10211021
    1022                         switch (IPC_GET_IMETHOD(call)) {
     1022                        switch (ipc_get_imethod(&call)) {
    10231023                        case WINDOW_GET_EVENT:
    10241024                                comp_window_get_event(win, &call);
     
    10321032                        async_get_call(&call);
    10331033
    1034                         if (!IPC_GET_IMETHOD(call)) {
     1034                        if (!ipc_get_imethod(&call)) {
    10351035                                comp_window_close(win, &call);
    10361036                                window_destroy(win);
     
    10381038                        }
    10391039
    1040                         switch (IPC_GET_IMETHOD(call)) {
     1040                        switch (ipc_get_imethod(&call)) {
    10411041                        case WINDOW_DAMAGE:
    10421042                                comp_window_damage(win, &call);
     
    10671067static void comp_mode_change(viewport_t *vp, ipc_call_t *icall)
    10681068{
    1069         sysarg_t mode_idx = IPC_GET_ARG2(*icall);
     1069        sysarg_t mode_idx = ipc_get_arg2(icall);
    10701070        fibril_mutex_lock(&viewport_list_mtx);
    10711071
     
    11651165        fibril_mutex_lock(&viewport_list_mtx);
    11661166        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)) {
    11681168                        vp = cur;
    11691169                        break;
     
    11801180                async_get_call(&call);
    11811181
    1182                 if (!IPC_GET_IMETHOD(call)) {
     1182                if (!ipc_get_imethod(&call)) {
    11831183                        async_hangup(vp->sess);
    11841184                        return;
    11851185                }
    11861186
    1187                 switch (IPC_GET_IMETHOD(call)) {
     1187                switch (ipc_get_imethod(&call)) {
    11881188                case VISUALIZER_MODE_CHANGE:
    11891189                        comp_mode_change(vp, &call);
Note: See TracChangeset for help on using the changeset viewer.