Changeset 306061a in mainline


Ignore:
Timestamp:
2011-03-17T22:32:24Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7308e84, b64eac6
Parents:
051b3db8
Message:

Display mouse pointer even in lower resolution. Still be careful not
to divide by zero if gcons has not been initialized yet.

File:
1 edited

Legend:

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

    r051b3db8 r306061a  
    285285        ssize_t nx = (ssize_t) mouse_x + dx;
    286286        ssize_t ny = (ssize_t) mouse_y + dy;
    287 
    288         if (!use_gcons)
     287       
     288        /* Until gcons is initalized we don't have the screen resolution */
     289        if (xres == 0 || yres == 0)
    289290                return;
    290291       
Note: See TracChangeset for help on using the changeset viewer.