Changeset c2250702 in mainline for uspace/srv/hid/display/seat.c


Ignore:
Timestamp:
2019-12-16T13:31:42Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fb420e48
Parents:
65160d7
git-author:
Jiri Svoboda <jiri@…> (2019-12-15 13:23:28)
git-committer:
Jiri Svoboda <jiri@…> (2019-12-16 13:31:42)
Message:

Clip KFB render operations to KFB interior

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/display/seat.c

    r65160d7 rc2250702  
    5959
    6060        ds_display_add_seat(display, seat);
    61         seat->pntpos.x = 10;
    62         seat->pntpos.y = 10;
     61        seat->pntpos.x = 0;
     62        seat->pntpos.y = 0;
    6363
    6464        *rseat = seat;
     
    242242                printf("PTD_MOVE\n");
    243243                gfx_coord2_add(&seat->pntpos, &event->dmove, &npos);
    244                 if (npos.x < 10)
    245                         npos.x = 10;
    246                 if (npos.y < 10)
    247                         npos.y = 10;
    248                 if (npos.x > 1024 - 10)
    249                         npos.x = 1024 - 10;
    250                 if (npos.y > 768 - 10)
    251                         npos.y = 768 - 10;
     244                if (npos.x < 0)
     245                        npos.x = 0;
     246                if (npos.y < 0)
     247                        npos.y = 0;
     248                if (npos.x > 1024)
     249                        npos.x = 1024;
     250                if (npos.y > 768)
     251                        npos.y = 768;
    252252
    253253                printf("clear pointer\n");
Note: See TracChangeset for help on using the changeset viewer.