Changeset c2250702 in mainline for uspace/srv/hid/display/seat.c
- Timestamp:
- 2019-12-16T13:31:42Z (5 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/display/seat.c
r65160d7 rc2250702 59 59 60 60 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; 63 63 64 64 *rseat = seat; … … 242 242 printf("PTD_MOVE\n"); 243 243 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; 252 252 253 253 printf("clear pointer\n");
Note:
See TracChangeset
for help on using the changeset viewer.