~martin-decky/helenos/rcu

« back to all changes in this revision

Viewing changes to uspace/srv/hid/console/gcons.c

  • Committer: Martin Sucha
  • Date: 2011-03-22 19:55:06 UTC
  • mfrom: (888 mainline)
  • mto: (720.2.80 ext2-merge)
  • mto: This revision was merged to the branch mainline in revision 1004.
  • Revision ID: sucha14@st.fmph.uniba.sk-20110322195506-65nyzi3633naacrp
MergeĀ mainlineĀ changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
284
284
{
285
285
        ssize_t nx = (ssize_t) mouse_x + dx;
286
286
        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)
289
290
                return;
290
291
        
291
292
        mouse_x = (size_t) limit(nx, 0, xres);