Changeset f1d6866 in mainline for uspace/srv/hid/console/console.c
- Timestamp:
- 2011-09-18T21:22:59Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- dcc44ca1
- Parents:
- 85ff862 (diff), 45a9cf4 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/console/console.c
r85ff862 rf1d6866 60 60 #define CONSOLE_MARGIN 12 61 61 62 #define STATE_START 1 1062 #define STATE_START 100 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 = STATE_START + (xres - 800) / 2; 370 sysarg_t status_start = 371 STATE_START + (xres - 800) / 2 + CONSOLE_MARGIN; 371 372 372 373 if ((y < STATE_TOP) || (y >= STATE_TOP + STATE_HEIGHT)) … … 379 380 return NULL; 380 381 381 if (((x - status_start) % (STATE_WIDTH + STATE_SPACE)) < STATE_SPACE)382 if (((x - status_start) % (STATE_WIDTH + STATE_SPACE)) >= STATE_WIDTH) 382 383 return NULL; 383 384 … … 894 895 fb_vp_get_caps(fb_sess, console_vp, &ccaps); 895 896 897 mouse.x = xres / 2; 898 mouse.y = yres / 2; 896 899 mouse.pressed = false; 897 900
Note:
See TracChangeset
for help on using the changeset viewer.