Changeset 985e26d2 in mainline for uspace/srv/hid/console/gcons.c


Ignore:
Timestamp:
2010-01-07T19:06:59Z (15 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8190e63
Parents:
743e17b (diff), eca2435 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/console/gcons.c

    r743e17b r985e26d2  
    241241
    242242/** Return x, where left <= x <= right && |a-x| == min(|a-x|) is smallest */
    243 static inline int limit(size_t a, size_t left, size_t right)
     243static inline ssize_t limit(ssize_t a, ssize_t left, ssize_t right)
    244244{
    245245        if (a < left)
     
    261261        mouse_x = limit(mouse_x + dx, 0, xres);
    262262        mouse_y = limit(mouse_y + dy, 0, yres);
    263        
    264         async_msg_2(fbphone, FB_POINTER_MOVE, mouse_x, mouse_y);
     263
     264        if (active_console != KERNEL_CONSOLE)
     265                async_msg_2(fbphone, FB_POINTER_MOVE, mouse_x, mouse_y);
    265266}
    266267
     
    339340                goto exit;
    340341       
    341         rc = ipc_share_out_start(fbphone, shm, PROTO_READ);
     342        rc = async_share_out_start(fbphone, shm, PROTO_READ);
    342343        if (rc)
    343344                goto drop;
     
    409410                goto exit;
    410411       
    411         rc = ipc_share_out_start(fbphone, shm, PROTO_READ);
     412        rc = async_share_out_start(fbphone, shm, PROTO_READ);
    412413        if (rc)
    413414                goto drop;
Note: See TracChangeset for help on using the changeset viewer.