Changeset cccc091 in mainline for uspace/srv/hid/console/console.c
- Timestamp:
- 2011-09-09T23:46:34Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 05fb96b
- Parents:
- c7f9037
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/console/console.c
rc7f9037 rcccc091 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
Note:
See TracChangeset
for help on using the changeset viewer.