Changes in uspace/srv/hid/console/console.c [cccc091:7c014d1] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/console/console.c
rcccc091 r7c014d1 60 60 #define CONSOLE_MARGIN 12 61 61 62 #define STATE_START 1 0062 #define STATE_START 110 63 63 #define STATE_TOP 8 64 64 #define STATE_SPACE 4 … … 368 368 static console_t *cons_find_icon(sysarg_t x, sysarg_t y) 369 369 { 370 sysarg_t status_start = 371 STATE_START + (xres - 800) / 2 + CONSOLE_MARGIN; 370 sysarg_t status_start = STATE_START + (xres - 800) / 2; 372 371 373 372 if ((y < STATE_TOP) || (y >= STATE_TOP + STATE_HEIGHT)) … … 380 379 return NULL; 381 380 382 if (((x - status_start) % (STATE_WIDTH + STATE_SPACE)) >= STATE_WIDTH)381 if (((x - status_start) % (STATE_WIDTH + STATE_SPACE)) < STATE_SPACE) 383 382 return NULL; 384 383 … … 895 894 fb_vp_get_caps(fb_sess, console_vp, &ccaps); 896 895 897 mouse.x = xres / 2;898 mouse.y = yres / 2;899 896 mouse.pressed = false; 900 897
Note:
See TracChangeset
for help on using the changeset viewer.