Changeset f15cb3c4 in mainline for uspace/srv/console
- Timestamp:
- 2008-12-04T19:14:29Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0258e67
- Parents:
- 405e13a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/console/gcons.c
r405e13a rf15cb3c4 251 251 void gcons_mouse_move(int dx, int dy) 252 252 { 253 mouse_x = limit(mouse_x +dx, 0, xres);254 mouse_y = limit(mouse_y +dy, 0, yres);253 mouse_x = limit(mouse_x + dx, 0, xres); 254 mouse_y = limit(mouse_y + dy, 0, yres); 255 255 256 256 async_msg_2(fbphone, FB_POINTER_MOVE, mouse_x, mouse_y); … … 259 259 static int gcons_find_conbut(int x, int y) 260 260 { 261 int status_start = STATUS_START + (xres - 800) / 2; ;261 int status_start = STATUS_START + (xres - 800) / 2; 262 262 263 263 if (y < STATUS_TOP || y >= STATUS_TOP + STATUS_HEIGHT) … … 269 269 if (x >= status_start + (STATUS_WIDTH + STATUS_SPACE) * CONSOLE_COUNT) 270 270 return -1; 271 if (((x - status_start) % (STATUS_WIDTH +STATUS_SPACE)) < STATUS_SPACE)272 return -1; 273 274 return (x - status_start) / (STATUS_WIDTH +STATUS_SPACE);271 if (((x - status_start) % (STATUS_WIDTH + STATUS_SPACE)) < STATUS_SPACE) 272 return -1; 273 274 return (x - status_start) / (STATUS_WIDTH + STATUS_SPACE); 275 275 } 276 276
Note:
See TracChangeset
for help on using the changeset viewer.