Changeset f1d6866 in mainline for uspace/srv/hid/console/console.c


Ignore:
Timestamp:
2011-09-18T21:22:59Z (14 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
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.
Message:

Merge mainline changes

File:
1 edited

Legend:

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

    r85ff862 rf1d6866  
    6060#define CONSOLE_MARGIN  12
    6161
    62 #define STATE_START   110
     62#define STATE_START   100
    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 = STATE_START + (xres - 800) / 2;
     370        sysarg_t status_start =
     371            STATE_START + (xres - 800) / 2 + CONSOLE_MARGIN;
    371372       
    372373        if ((y < STATE_TOP) || (y >= STATE_TOP + STATE_HEIGHT))
     
    379380                return NULL;
    380381       
    381         if (((x - status_start) % (STATE_WIDTH + STATE_SPACE)) < STATE_SPACE)
     382        if (((x - status_start) % (STATE_WIDTH + STATE_SPACE)) >= STATE_WIDTH)
    382383                return NULL;
    383384       
     
    894895        fb_vp_get_caps(fb_sess, console_vp, &ccaps);
    895896       
     897        mouse.x = xres / 2;
     898        mouse.y = yres / 2;
    896899        mouse.pressed = false;
    897900       
Note: See TracChangeset for help on using the changeset viewer.