Changeset 3249673 in mainline


Ignore:
Timestamp:
2010-08-29T19:41:31Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
20235a3, 7431b665
Parents:
df908b3 (diff), 5b8b66c (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 two fixes for a fb crash when mouse was moved early in the boot process.

Location:
uspace/srv/hid
Files:
2 edited

Legend:

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

    rdf908b3 r3249673  
    286286        ssize_t nx = (ssize_t) mouse_x + dx;
    287287        ssize_t ny = (ssize_t) mouse_y + dy;
     288
     289        if (!use_gcons)
     290                return;
    288291       
    289292        mouse_x = (size_t) limit(nx, 0, xres);
  • uspace/srv/hid/fb/fb.c

    rdf908b3 r3249673  
    13471347{
    13481348        mouse_hide();
    1349         pointer_x = x;
    1350         pointer_y = y;
     1349        pointer_x = x % screen.xres;
     1350        pointer_y = y % screen.yres;
    13511351        mouse_show();
    13521352}
Note: See TracChangeset for help on using the changeset viewer.