Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/console/console.c

    rcccc091 r7c014d1  
    6060#define CONSOLE_MARGIN  12
    6161
    62 #define STATE_START   100
     62#define STATE_START   110
    6363#define STATE_TOP     8
    6464#define STATE_SPACE   4
     
    368368static console_t *cons_find_icon(sysarg_t x, sysarg_t y)
    369369{
    370         sysarg_t status_start =
    371             STATE_START + (xres - 800) / 2 + CONSOLE_MARGIN;
     370        sysarg_t status_start = STATE_START + (xres - 800) / 2;
    372371       
    373372        if ((y < STATE_TOP) || (y >= STATE_TOP + STATE_HEIGHT))
     
    380379                return NULL;
    381380       
    382         if (((x - status_start) % (STATE_WIDTH + STATE_SPACE)) >= STATE_WIDTH)
     381        if (((x - status_start) % (STATE_WIDTH + STATE_SPACE)) < STATE_SPACE)
    383382                return NULL;
    384383       
     
    895894        fb_vp_get_caps(fb_sess, console_vp, &ccaps);
    896895       
    897         mouse.x = xres / 2;
    898         mouse.y = yres / 2;
    899896        mouse.pressed = false;
    900897       
Note: See TracChangeset for help on using the changeset viewer.