Changes in uspace/srv/hid/console/gcons.c [b3d513f:2ae1e6e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/console/gcons.c
rb3d513f r2ae1e6e 241 241 242 242 /** 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)243 static inline ssize_t limit(ssize_t a, ssize_t left, ssize_t right) 244 244 { 245 245 if (a < left) … … 261 261 mouse_x = limit(mouse_x + dx, 0, xres); 262 262 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); 265 266 } 266 267
Note:
See TracChangeset
for help on using the changeset viewer.