Changeset e1f2079 in mainline for uspace/srv/hid/display/seat.c
- Timestamp:
- 2020-02-14T19:54:40Z (4 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b0a94854
- Parents:
- b252e87
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/display/seat.c
rb252e87 re1f2079 253 253 errno_t ds_seat_post_ptd_event(ds_seat_t *seat, ptd_event_t *event) 254 254 { 255 ds_display_t *disp = seat->display; 255 256 gfx_coord2_t npos; 256 257 ds_window_t *wnd; … … 287 288 288 289 gfx_coord2_add(&seat->pntpos, &event->dmove, &npos); 289 if (npos.x < 0) 290 npos.x = 0; 291 if (npos.y < 0) 292 npos.y = 0; 293 if (npos.x > 1024) 294 npos.x = 1024; 295 if (npos.y > 768) 296 npos.y = 768; 290 gfx_coord2_clip(&npos, &disp->rect, &npos); 297 291 298 292 printf("clear pointer\n");
Note:
See TracChangeset
for help on using the changeset viewer.